Versions in this module Expand all Collapse all v0 v0.3.1 Feb 1, 2021 Changes in this version + var ErrFileTooLarge = errors.New("file is exceeding the maximum file size of 4GB") + func MarshalString(s string, padToLength int) []byte + func UnmarshalInt16LSBMSB(data []byte) (int16, error) + func UnmarshalInt32LSBMSB(data []byte) (int32, error) + func WriteInt16LSBMSB(dst []byte, value int16) + func WriteInt32LSBMSB(dst []byte, value int32) + type BootVolumeDescriptorBody struct + BootIdentifier string + BootSystemIdentifier string + BootSystemUse [1977]byte + func (bvd *BootVolumeDescriptorBody) UnmarshalBinary(data []byte) error + type DirectoryEntry struct + ExtendedAtributeRecordLength byte + ExtentLength int32 + ExtentLocation int32 + FileFlags byte + FileUnitSize byte + Identifier string + InterleaveGap byte + RecordingDateTime RecordingTimestamp + SystemUse []byte + VolumeSequenceNumber int16 + func (de *DirectoryEntry) Clone() DirectoryEntry + func (de *DirectoryEntry) MarshalBinary() ([]byte, error) + func (de *DirectoryEntry) UnmarshalBinary(data []byte) error + type File struct + func (f *File) GetChildren() ([]*File, error) + func (f *File) IsDir() bool + func (f *File) ModTime() time.Time + func (f *File) Mode() os.FileMode + func (f *File) Name() string + func (f *File) Reader() io.Reader + func (f *File) Size() int64 + func (f *File) Sys() interface{} + type Image struct + func OpenImage(ra io.ReaderAt) (*Image, error) + func (i *Image) RootDir() (*File, error) + type ImageWriter struct + func NewWriter() (*ImageWriter, error) + func (iw *ImageWriter) AddFile(data io.Reader, filePath string) error + func (iw *ImageWriter) AddLocalFile(origin, target string) error + func (iw *ImageWriter) Cleanup() error + func (iw *ImageWriter) WriteTo(w io.Writer, volumeIdentifier string) error + type PrimaryVolumeDescriptorBody struct + AbstractFileIdentifier string + ApplicationIdentifier string + ApplicationUsed [512]byte + BibliographicFileIdentifier string + CopyrightFileIdentifier string + DataPreparerIdentifier string + FileStructureVersion byte + LogicalBlockSize int16 + OptTypeLPathTableLoc int32 + OptTypeMPathTableLoc int32 + PathTableSize int32 + PublisherIdentifier string + RootDirectoryEntry *DirectoryEntry + SystemIdentifier string + TypeLPathTableLoc int32 + TypeMPathTableLoc int32 + VolumeCreationDateAndTime VolumeDescriptorTimestamp + VolumeEffectiveDateAndTime VolumeDescriptorTimestamp + VolumeExpirationDateAndTime VolumeDescriptorTimestamp + VolumeIdentifier string + VolumeModificationDateAndTime VolumeDescriptorTimestamp + VolumeSequenceNumber int16 + VolumeSetIdentifier string + VolumeSetSize int16 + VolumeSpaceSize int32 + func (pvd *PrimaryVolumeDescriptorBody) UnmarshalBinary(data []byte) error + func (pvd PrimaryVolumeDescriptorBody) MarshalBinary() ([]byte, error) + type RecordingTimestamp time.Time + func (ts *RecordingTimestamp) UnmarshalBinary(data []byte) error + func (ts RecordingTimestamp) MarshalBinary(dst []byte) + type VolumeDescriptorTimestamp struct + Day int + Hour int + Hundredth int + Minute int + Month int + Offset int + Second int + Year int + func VolumeDescriptorTimestampFromTime(t time.Time) VolumeDescriptorTimestamp + func (ts *VolumeDescriptorTimestamp) MarshalBinary() ([]byte, error) + func (ts *VolumeDescriptorTimestamp) UnmarshalBinary(data []byte) error