Skip to content

CBORGenerator.writeRawUTF8String() seems to ignore offset #366

@nik9000

Description

@nik9000

I've encountered an issue when working with cbor where it looks like the writeRawUtf8String is ignoring the offset. I'm no expert, but it looks like this:

still ignores the offset parameter.

In my version the method's source is:

    @Override
    public void writeRawUTF8String(byte[] raw, int offset, int len)
            throws IOException
    {
        _verifyValueWrite("write String value");
        if (len == 0) {
            _writeByte(BYTE_EMPTY_STRING);
            return;
        }
        _writeLengthMarker(PREFIX_TYPE_TEXT, len);
        _writeBytes(raw, 0, len);
    }

And it certainly isn't touching the offset parameter. I need that one!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions