Esempio n. 1
0
 public static void writeULong(List <byte> data, ulong input, int offset, int size)
 {
     data.RemoveRange(offset, size);
     data.InsertRange(offset, BinaryHandler.ulongAsBytes(input));
 }
Esempio n. 2
0
 // READ
 public static String readHexString(List <byte> data, int offset, int size)
 {
     return(BinaryHandler.bytesAsHexString(data.GetRange(offset, size)));
 }
Esempio n. 3
0
 public static void writeString32(List <byte> data, string input, int offset, int size)
 {
     data.RemoveRange(offset, size);
     data.InsertRange(offset, BinaryHandler.stringAs32Bytes(FormatHandler.format32Chars(input)));
 }
Esempio n. 4
0
 public static float readFloat(List <byte> data, int offset, int size)
 {
     return(BinaryHandler.bytesAsFloat(data.GetRange(offset, size)));
 }
Esempio n. 5
0
 public static short readShort(List <byte> data, int offset, int size)
 {
     return(BinaryHandler.bytesAsShort(data.GetRange(offset, size)));
 }
Esempio n. 6
0
 public static ulong readULong(List <byte> data, int offset, int size)
 {
     return(BinaryHandler.bytesAsULong(data.GetRange(offset, size)));
 }
Esempio n. 7
0
 public static void writeFloat(List <byte> data, float input, int offset, int size)
 {
     data.RemoveRange(offset, size);
     data.InsertRange(offset, BinaryHandler.floateAsBytes(input));
 }
Esempio n. 8
0
 public static void writeShort(List <byte> data, short input, int offset, int size)
 {
     data.RemoveRange(offset, size);
     data.InsertRange(offset, BinaryHandler.shortAsBytes(input));
 }