Example #1
0
 static void BinariseAssign(MemoryStream mem, string name, Int32 val)
 {
     BinaryFile.WriteByte(mem, 1);
     BinaryFile.WriteByte(mem, 2);
     BinaryFile.WriteString(mem, name);
     BinaryFile.WriteUInt32(mem, (UInt32)val);
 }
Example #2
0
 internal void WriteHeader(Stream sr)
 {
     BinaryFile.WriteString(sr, Path);
     BinaryFile.WriteUInt32(sr, PackingMethod);
     BinaryFile.WriteUInt32(sr, OriginalSize);
     BinaryFile.WriteUInt32(sr, Reserved);
     BinaryFile.WriteUInt32(sr, Timestamp);
     BinaryFile.WriteUInt32(sr, (UInt32)DataSize);
 }
Example #3
0
 static void BinariseEnum(MemoryStream mem, string name, long val)
 {
     BinaryFile.WriteString(mem, name);
     BinaryFile.WriteUInt32(mem, (UInt32)val);
 }
Example #4
0
 static void BinariseEmbedded(MemoryStream mem, UInt32 n)
 {
     BinaryFile.WriteByte(mem, 2);
     BinaryFile.WriteUInt32(mem, n);
 }
Example #5
0
 static void BinariseClass(MemoryStream mem, string name, UInt32 offset)
 {
     BinaryFile.WriteByte(mem, 0);
     BinaryFile.WriteString(mem, name);
     BinaryFile.WriteUInt32(mem, offset);
 }