Beispiel #1
0
 internal override void WriteTo(byte[] buffer, int offset)
 {
     base.WriteTo(buffer, offset);
     IsoUtilities.WriteA1Chars(buffer, offset + 8, 32, SystemIdentifier, CharacterEncoding);
     IsoUtilities.WriteString(buffer, offset + 40, 32, true, VolumeIdentifier, CharacterEncoding, true);
     IsoUtilities.ToBothFromUInt32(buffer, offset + 80, VolumeSpaceSize);
     IsoUtilities.EncodingToBytes(CharacterEncoding, buffer, offset + 88);
     IsoUtilities.ToBothFromUInt16(buffer, offset + 120, VolumeSetSize);
     IsoUtilities.ToBothFromUInt16(buffer, offset + 124, VolumeSequenceNumber);
     IsoUtilities.ToBothFromUInt16(buffer, offset + 128, LogicalBlockSize);
     IsoUtilities.ToBothFromUInt32(buffer, offset + 132, PathTableSize);
     IsoUtilities.ToBytesFromUInt32(buffer, offset + 140, TypeLPathTableLocation);
     IsoUtilities.ToBytesFromUInt32(buffer, offset + 144, OptionalTypeLPathTableLocation);
     IsoUtilities.ToBytesFromUInt32(buffer, offset + 148, Utilities.BitSwap(TypeMPathTableLocation));
     IsoUtilities.ToBytesFromUInt32(buffer, offset + 152, Utilities.BitSwap(OptionalTypeMPathTableLocation));
     RootDirectory.WriteTo(buffer, offset + 156, CharacterEncoding);
     IsoUtilities.WriteD1Chars(buffer, offset + 190, 129, VolumeSetIdentifier, CharacterEncoding);
     IsoUtilities.WriteA1Chars(buffer, offset + 318, 129, PublisherIdentifier, CharacterEncoding);
     IsoUtilities.WriteA1Chars(buffer, offset + 446, 129, DataPreparerIdentifier, CharacterEncoding);
     IsoUtilities.WriteA1Chars(buffer, offset + 574, 129, ApplicationIdentifier, CharacterEncoding);
     IsoUtilities.WriteD1Chars(buffer, offset + 702, 37, CopyrightFileIdentifier, CharacterEncoding);     // FIXME!!
     IsoUtilities.WriteD1Chars(buffer, offset + 739, 37, AbstractFileIdentifier, CharacterEncoding);      // FIXME!!
     IsoUtilities.WriteD1Chars(buffer, offset + 776, 37, BibliographicFileIdentifier, CharacterEncoding); // FIXME!!
     IsoUtilities.ToVolumeDescriptorTimeFromUTC(buffer, offset + 813, CreationDateAndTime);
     IsoUtilities.ToVolumeDescriptorTimeFromUTC(buffer, offset + 830, ModificationDateAndTime);
     IsoUtilities.ToVolumeDescriptorTimeFromUTC(buffer, offset + 847, ExpirationDateAndTime);
     IsoUtilities.ToVolumeDescriptorTimeFromUTC(buffer, offset + 864, EffectiveDateAndTime);
     buffer[offset + 881] = FileStructureVersion;
 }