Create a FlexiByteArray with a specific size and initialize with a specific value.
Wrap a ByteArray and set the bit index of the last byte.