Beispiel #1
0
 /// <summary>
 /// Decodes an 8-bit unsigned integer from the buffer and advances the buffer's position.
 /// </summary>
 /// <param name="buffer">The buffer to read.</param>
 /// <returns>An 8-bit unsigned integer.</returns>
 public static byte?DecodeUByte(ByteBuffer buffer)
 {
     return(UByteEncoding.Decode(buffer, 0));
 }
Beispiel #2
0
 public override object DecodeObject(ByteBuffer buffer, FormatCode formatCode)
 {
     return(UByteEncoding.Decode(buffer, formatCode));
 }