public static fourcc ReadFourcc(this System.IO.BinaryReader reader) { var buffer = reader.ReadBytes(4); fourcc code = new fourcc(buffer[0], buffer[1], buffer[2], buffer[3]); return code; }
ResourceCollection() { header_fourcc = new fourcc("blkh"); size = 0; resource_counts = new int[0]; }
public static void WriteFourcc(this System.IO.BinaryWriter writer, fourcc code) { byte[] buffer = { code.msb0, code.msb1, code.lsb2, code.lsb3 }; writer.Write(buffer); }