Made by CRACKbomber @ XPGamesaves.com<br />
<br />
/////////////////////////////////<br />
// Features<br />
////////////////////////////////<br />
<br />
TONS of builtin extension methods!<br />
<br />
Example:<br />
<br />
using xIO.Common.Helpers;<br />
<br />
int foo = 10;<br />
// Swaps the Endians to Big<br />
int bigFoo = foo.Swap();<br />
// Aligns foo to an arbitrary boundary<br />
int alignedFoo = foo.Align(0x800);<br />
// UnMake packaged ID (special case IDs)<br />
string ID = foo.UnMakeID();<br />
<br />
<br />
Endian IO reading and writing<br />
<br />
Example:<br />
<br />
using xIO.IO;<br />
[StructLayout(LayoutKind.Sequential)]<br />
struct fooStruct<br />
{<br />
int fooMember;<br />
float fooMember2;<br />
ushort fooMember3;<br />
}<br />
IOReader reader = new IOReader(File.OpenRead("foo.bin"), Endian.Big);<br />
<br />
int foo = reader.ReadInt();<br />
<br />
<br />
fooStruct lol = reader.ReadStruct<fooStruct>();<br />
<br />
reader.Close();<br />
reader.Dispose();<br />
//Writing<br />
<br />
IOWriter writer = new IOWriter(File.Create("foo2.bin"), Endian.Big);<br />
<br />
writer.Write(foo);<br />
writer.WriteStruct<fooStruct>(lol);<br />
<br />
writer.Flush();<br />
writer.Close();<br />
writer.Dispose();<br />
<br />
Additional Features:<br />
<br />
xCompression and zLib operations<br />
<br />
Upcoming features:<br />
<br />
Added encryption methods<br />
More common compression types<br />
STFX packaging