Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Simg2imgWriter ¶
func Simg2imgWriter(output io.WriteSeeker) io.Writer
Types ¶
type ChunkHeader ¶
type SparseHeader ¶
type SparseHeader struct {
Magic uint32 // 0xed26ff3a
MajorVersion uint16 // (0x1) - reject images with higher major versions
MinorVersion uint16 // (0x0) - allow images with higer minor versions
FileHeaderSize uint16 // 28 bytes for first revision of the file format
ChunkHeaderSize uint16 // 12 bytes for first revision of the file format
BlockSize uint32 // block size in bytes, must be a multiple of 4 (4096)
TotalBlocks uint32 // total blocks in the non-sparse output image
TotalChunks uint32 // total chunks in the sparse input image
ImageChecksum uint32 // CRC32 checksum of the original data, counting "don't care"
}
Click to show internal directories.
Click to hide internal directories.