public void Save(sio.FileStream fs) { misc.WriteStruct(fs, hdr); fs.WriteString(name.ToUpper()); if (!isDirectory) fs.WriteString(";1"); if ((fs.Position & 1) == 1) fs.WriteByte(0); }
public void Save(sio.FileStream fs) { hdr.parDirNum++; misc.WriteStruct(fs, hdr); hdr.parDirNum--; fs.WriteString(name); if ((fs.Position & 1) == 1) fs.WriteByte(0); }
public void SaveM(sio.FileStream fs) { sio.BinaryWriter bw; bw = new sio.BinaryWriter(fs); hdr.parDirNum++; fs.WriteByte(hdr.lenDirId); fs.WriteByte(hdr.exAttrRecLen); bw.Write(hdr.locExtent.ChangeEndian()); bw.Write(hdr.parDirNum.ChangeEndian()); hdr.parDirNum--; fs.WriteString(name); if ((fs.Position & 1) == 1) fs.WriteByte(0); }
public void Save(sio.FileStream fs, FileDirectoryDescriptor parent) { int i; misc.WriteStruct(fs, files[0].hdr); fs.WriteByte(0); misc.WriteStruct(fs, parent.hdr); fs.WriteByte(1); for (i = 1; i < files.Count; i++) { fs.CondAlign(ISO9660.logSize, files[i].RecSize); files[i].Save(fs); } fs.Align(ISO9660.logSize); }
public override void Save(sio.FileStream fs) { fs.WriteByte(255); base.Save(fs); fs.Align(ISO9660.logSize); }
public virtual void Save(sio.FileStream fs) { misc.WriteStruct(fs, hdr1); fs.WriteByte(0); }
public override void Save(sio.FileStream fs) { fs.WriteByte(1); base.Save(fs); misc.WriteStruct(fs, hdr3); }
private static void b64_from_24bit(byte b2, byte b1, byte b0, int n, IO.MemoryStream finalResult) { const string b64t = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; int w = ((b2) << 16) | ((b1) << 8) | (b0); while (n-- > 0) { finalResult.WriteByte((byte)b64t[w & 0x3f]); w >>= 6; } }