int getBit(int position) { if (position < _byteBuffer.length) { seek(position); return readUnsignedByte(); } else { return 0; } }