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