Documentation ¶
Index ¶
- func BytesToUint32(buf []byte) uint32
- func BytesToUint64(buf []byte) uint64
- func GetPaddedData(data []byte, size uint64, targetSize uint64, padding string) []byte
- func GetPaddedFile(data []byte, size uint64, targetSize uint64, padding string, offset uint64) []byte
- func GetVersion(file *os.File) uint64
- func MIN(a uint64, b uint64) uint64
- func SyncAndUpdateVersion(file *os.File, version uint64)
- func TargetSizeWrapper(targetSize uint64) uint64
- func Uint32ToBytes(i uint32) []byte
- func Uint64ToBytes(i uint64) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToUint32 ¶ added in v1.0.0
func BytesToUint64 ¶ added in v1.0.0
func GetPaddedData ¶
func GetPaddedFile ¶
func GetVersion ¶
func SyncAndUpdateVersion ¶
func TargetSizeWrapper ¶ added in v1.0.0
func Uint32ToBytes ¶ added in v1.0.0
func Uint64ToBytes ¶ added in v1.0.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.