private static int FrameIdV2(string id) { return(BitConverterBigEndian.ToInt24(Encoding.ASCII.GetBytes(id))); }
private static uint FrameIdV3(string id) { return(BitConverterBigEndian.ToUInt32(Encoding.ASCII.GetBytes(id))); }
public static uint ReadUInt32BE(this BinaryReader br) { return(BitConverterBigEndian.ToUInt32(br.ReadBytes(sizeof(uint)))); }
public static ulong ReadUInt64BE(this BinaryReader br) { return(BitConverterBigEndian.ToUInt64(br.ReadBytes(sizeof(ulong)))); }
public static ushort ReadUInt16BE(this BinaryReader br) { return(BitConverterBigEndian.ToUInt16(br.ReadBytes(sizeof(ushort)))); }
public static int ReadInt24BE(this BinaryReader br) { return(BitConverterBigEndian.ToInt24(br.ReadBytes(3))); }
public static long ReadInt64Be(this BinaryReader br) { return(BitConverterBigEndian.ToInt64(br.ReadBytes(8))); }
public static int ReadInt32Be(this BinaryReader br) { return(BitConverterBigEndian.ToInt32(br.ReadBytes(4))); }
public static short ReadInt16Be(this BinaryReader br) { return(BitConverterBigEndian.ToInt16(br.ReadBytes(2))); }