private void writeTypedBytes(final int type, final byte[] data, final int offset, final int length)
    {
        int totalLength = 1 + length;
        if (length < 14)
        {
            buffer.writeUInt8(type | length);
        }
        else
        {
            // need to specify length explicitly
            buffer.writeUInt8(type | 0xE);
            final int sizeLength = buffer.writeVarUInt(length);
            totalLength += sizeLength;
        }
        updateLength(totalLength);
        buffer.writeBytes(data, offset, length);
    }
private void writeTypedBytes ( final int type , final byte [ ] data , final int offset , final int length ) { int totalLength = 1 + length ; if ( length < 14 ) { buffer . writeUInt8 ( type | length ) ; } else { buffer . writeUInt8 ( type | 0xE ) ; final int sizeLength = buffer . writeVarUInt ( length ) ; totalLength += sizeLength ; } updateLength ( totalLength ) ; buffer . writeBytes ( data , offset , length ) ; }
Write a raw byte array as some type. Note that this does not do {@link #prepareValue()}.