示例#1
0
 /// <summary>
 /// Decodes a 32-bit signed integer from the buffer and advances the buffer's position.
 /// </summary>
 /// <param name="buffer">The buffer to read.</param>
 /// <returns>A 32-bit signed integer.</returns>
 public static int?DecodeInt(ByteBuffer buffer)
 {
     return(IntEncoding.Decode(buffer, 0));
 }
示例#2
0
 public override object DecodeObject(ByteBuffer buffer, FormatCode formatCode)
 {
     return(IntEncoding.Decode(buffer, formatCode));
 }