Documentation ¶
Index ¶
- func ReadFormatAndOptions(sr StorageSeqReader) (FileFormat, FormatOptions, error)
- func WriteFormatAndOptions(sw StorageSeqWriter, format FileFormat, options FormatOptions) error
- type ChapterDetails
- type FileFormat
- type FormatOptions
- type PayloadBuilder
- type PayloadFactory
- type PayloadWriter
- type ReadConfig
- type StorageBlockReader
- type StorageEntryPosition
- type StorageSeqReader
- type StorageSeqWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFormatAndOptions ¶
func ReadFormatAndOptions(sr StorageSeqReader) (FileFormat, FormatOptions, error)
func WriteFormatAndOptions ¶
func WriteFormatAndOptions(sw StorageSeqWriter, format FileFormat, options FormatOptions) error
Types ¶
type ChapterDetails ¶
type FileFormat ¶
type FileFormat uint16
type FormatOptions ¶
type FormatOptions uint64
type PayloadBuilder ¶
type PayloadBuilder interface { AddPrelude(bytes []byte, pos StorageEntryPosition) error AddConclude(bytes []byte, pos StorageEntryPosition, totalCount uint32) error AddChapter(bytes []byte, pos StorageEntryPosition, details ChapterDetails) error NeedsNextChapter() bool Finished() error Failed(error) error }
type PayloadFactory ¶
type PayloadFactory interface {
CreatePayloadBuilder(format FileFormat, sr StorageSeqReader) PayloadBuilder
}
type PayloadWriter ¶
type PayloadWriter interface { io.Closer WritePrelude(bytes []byte, concludeMaxLength int) (StorageEntryPosition, error) WriteConclude(bytes []byte) (StorageEntryPosition, error) WriteChapter(bytes []byte, details ChapterDetails) (StorageEntryPosition, error) }
type ReadConfig ¶
type StorageBlockReader ¶
type StorageEntryPosition ¶
type StorageSeqReader ¶
type StorageSeqWriter ¶
type StorageSeqWriter interface { io.ByteWriter io.Writer Offset() int64 }
Click to show internal directories.
Click to hide internal directories.