public static ReadUInt16 ( this buffer, int offset ) : ushort | ||
buffer | this | |
offset | int | |
Результат | ushort |
public static ushort ReadUInt16(this byte[] buffer, int offset)
{
ushort value = 0;
value |= buffer[offset++];
value <<= 8;
value |= buffer[offset++];
return value;
}