//Each listing has the ulong next cluster in front, followed by the Entries(byte isdirectory(0xF0 file, 0x0F directory), uint hash, ulong sector) public static void writeEntry(byte[] listing, uint i, EntryStruct entry) { fixed(byte *ptr = listing) { UnsignedWriter w = new UnsignedWriter(ptr); w.Advance(8 + (i * 13)); w.Write8(entry.isDirectory); w.Write32(entry.hash); w.Write64(entry.sector); } }
//Each listing has the ulong next cluster in front, followed by the Entries(byte isdirectory(0xF0 file, 0x0F directory), uint hash, ulong sector) public static void writeEntry(byte[] listing, uint i, EntryStruct entry) { fixed (byte* ptr = listing) { UnsignedWriter w = new UnsignedWriter(ptr); w.Advance(8 + (i * 13)); w.Write8(entry.isDirectory); w.Write32(entry.hash); w.Write64(entry.sector); } }