Documentation ¶
Index ¶
- Variables
- func Marshal(data interface{}, endianness Endianness) ([]byte, error)
- func UnmarshaInitSlice(reader io.Reader, data interface{}, endianness Endianness) error
- func Unmarshal(reader io.Reader, data interface{}, endianness Endianness) error
- func Unpack(reader io.ReadSeeker, endianness Endianness, data interface{}, ...) error
- type Endianness
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSeeking error definition ErrSeeking = errors.New("Error seeking") // ErrMultipleOffsets error definition ErrMultipleOffsets = errors.New("Only one offset argument is allowed") // ErrInvalidNilPointer ErrInvalidNilPointer = errors.New("Nil pointer is invalid") // No Pointer interface ErrNoPointerInterface = errors.New("Interface expect to be a pointer") )
Functions ¶
func Marshal ¶
func Marshal(data interface{}, endianness Endianness) ([]byte, error)
func UnmarshaInitSlice ¶
func UnmarshaInitSlice(reader io.Reader, data interface{}, endianness Endianness) error
func Unpack ¶
func Unpack(reader io.ReadSeeker, endianness Endianness, data interface{}, offsets ...int64) error
Unpack data type from reader object. An optional offset can be specified.
Types ¶
type Endianness ¶
Endianness interface definition specifies the endianness used to decode
Click to show internal directories.
Click to hide internal directories.