Documentation
¶
Overview ¶
Package udf writes UDF 2.50 file system images, a Blu-ray disc's: read-only, its files' entries and directories in a metadata partition (with its mirror), their contents in the physical partition laid out in an order the caller chooses, so that one file (a 3D film's SSIF) can be made of pieces of others, interleaved.
The layout is tsMuxeR's: the volume recognition sequence at sector 16, the volume descriptors at 32 (their reserve copy after the partition), the integrity descriptor at 64, anchors at 256 and at the last sector, the partition from 288 (its metadata file's entry first, the metadata from block 32, the files' contents, the metadata's mirror).
Index ¶
Constants ¶
const Sector = 2048
Sector is the image's sector and logical block size.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶ added in v0.21.0
type Entry struct {
// contains filtered or unexported fields
}
Entry is a file or directory of the image.
func (*Entry) ReadDir ¶ added in v0.21.0
ReadDir is a directory's entries, in the directory's order, the parent and deleted ones left out.
type File ¶
type File struct {
Name string
Dir bool
Children []*File
// Size is a file's length; Content gives its bytes (from the start,
// read once, in the order the image needs them: Write reads the
// pieces of each file in order).
Size int64
Content func() (io.Reader, error)
// RealTime marks a stream file (UDF's real-time file, as Blu-ray's
// m2ts and ssif are).
RealTime bool
// Parts, when set, make the file of pieces of other files (each in
// Write's order), not of content of its own.
Parts []Piece
// contains filtered or unexported fields
}
File is a file or directory of the image.
type Image ¶ added in v0.21.0
type Image struct {
// contains filtered or unexported fields
}
Image is an image open for reading.