Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] Question on Binary Decoding

Ok! This ByteBuf is from the Netty dependecy. Is that correct?

On Sat, Aug 10, 2019 at 1:57 PM Kevin Herron <kevinherron@xxxxxxxxx> wrote:
Joe,

OpcUaBinaryStreamDecoder is decoding from a ByteBuf, which is stateful and tracks its reader and writer indices internally.

On Fri, Aug 9, 2019 at 10:00 PM Joe San <codeintheopen@xxxxxxxxx> wrote:
Hi Kevin,

As you might be aware that I'm implementing a OPC UA Pub Sub binary parser, I have to rely on the position in the inout byte array to parse through the required structure. This means that I have to read byte by byte and after reading it, increment the position and parse the next one. 

I could not find how it is done in Milo for the binary decoder? I see that there is a currentBte and bitsRemaining volatile variables in the OpcUaBinaryStreamDecoder class, but I could not see where this one gets incremented?

Thanks and Regards,
Joe
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top