Documentation ¶
Overview ¶
Package util provides some basic util functions.
Index ¶
- Constants
- func Fadvise(file *os.File, off, length int64, advise uint32) error
- func Fdatasync(file *os.File) error
- func GetUnalignedUint16(u8 []uint8) uint16
- func GetUnalignedUint32(u8 []uint8) uint32
- func GetUnalignedUint64(u8 []uint8) uint64
- func MarshalKVText(kv []KeyValue) []byte
- func MarshalUint16(i uint16) []byte
- func MarshalUint32(i uint32) []byte
- func MarshalUint64(v uint64) []byte
- func ParseKVText(txt []byte) map[string]string
- func StringToByte(str string, align int, maxlength int) []byte
- type KeyValue
Constants ¶
View Source
const ( POSIX_FADV_NORMAL = iota POSIX_FADV_RANDOM POSIX_FADV_SEQUENTIAL POSIX_FADV_WILLNEED POSIX_FADV_DONTNEED POSIX_FADV_NOREUSE )
Variables ¶
This section is empty.
Functions ¶
func GetUnalignedUint16 ¶
func GetUnalignedUint32 ¶
func GetUnalignedUint64 ¶
func MarshalKVText ¶
func MarshalUint16 ¶
func MarshalUint32 ¶
func MarshalUint64 ¶
func ParseKVText ¶
ParseKVText parses iSCSI key value data.
Types ¶
Click to show internal directories.
Click to hide internal directories.