How to properly read 16 byte unsigned integer with BinaryReader

Posted by Brent on Stack Overflow See other posts from Stack Overflow or by Brent
Published on 2010-06-09T15:02:29Z Indexed on 2010/06/12 14:42 UTC
Read the original article Hit count: 345

Filed under:
|
|
|

I need to parse a binary stream in .NET to convert a 16 byte unsigned integer. I would like to use the BinaryReader.ReadUIntXX() functions but there isn't a BinaryReader.ReadUInt128() function available. I assume I will have to roll my own function using the ReadByte function and build an array but I don't know if this is the most efficient method? Thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET