public static uint smethod_6(global::System.IO.BinaryReader reader, global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder byteOrder) { if (byteOrder == global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder.LittleEndian) { return((uint)reader.ReadInt32()); } return(global::System.BitConverter.ToUInt32(global::ARC_Studio.Workers.ARC.FileUtils.ReadBytes(reader, 4, global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder.BigEndian), 0)); }
public static void smethod_7(global::System.IO.BinaryWriter writer, uint value, global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder byteOrder) { byte[] array = global::System.BitConverter.GetBytes(value); if (byteOrder == global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder.BigEndian) { array = array.Reverse <byte>().ToArray <byte>(); } writer.Write(array); }
public static byte[] ReadBytes(global::System.IO.BinaryReader reader, int fieldSize, global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder byteOrder) { byte[] array = new byte[fieldSize]; if (byteOrder == global::ARC_Studio.Workers.ARC.FileUtils.ByteOrder.LittleEndian) { return(reader.ReadBytes(fieldSize)); } for (int i = fieldSize - 1; i > -1; i--) { array[i] = reader.ReadByte(); } return(array); }