예제 #1
0
 private static int FrameIdV2(string id)
 {
     return(BitConverterBigEndian.ToInt24(Encoding.ASCII.GetBytes(id)));
 }
예제 #2
0
 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)));
 }
예제 #7
0
 public static long ReadInt64Be(this BinaryReader br)
 {
     return(BitConverterBigEndian.ToInt64(br.ReadBytes(8)));
 }
예제 #8
0
 public static int ReadInt32Be(this BinaryReader br)
 {
     return(BitConverterBigEndian.ToInt32(br.ReadBytes(4)));
 }
예제 #9
0
 public static short ReadInt16Be(this BinaryReader br)
 {
     return(BitConverterBigEndian.ToInt16(br.ReadBytes(2)));
 }