public static unsafe Int16 ReadInt16(this Stream stream) { Int16 v; stream.ReadNoAlloc((byte*)&v, 0, sizeof(Int16)); return v; }
public static unsafe Int32 ReadInt32(this Stream stream) { Int32 v; stream.ReadNoAlloc((byte*)&v, 0, sizeof(Int32)); return v; }