/// <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)); }
public override object DecodeObject(ByteBuffer buffer, FormatCode formatCode) { return(ShortEncoding.Decode(buffer, formatCode)); }