Documentation ¶
Overview ¶
Package binstruct implements simple struct-tag-based conversion between Go structures and binary on-disk representations of that data.
Index ¶
- func Marshal(obj any) ([]byte, error)
- func MarshalWithoutInterface(obj any) ([]byte, error)
- func StaticSize(obj any) int
- func Unmarshal(dat []byte, dstPtr any) (int, error)
- func UnmarshalWithoutInterface(dat []byte, dstPtr any) (int, error)
- type End
- type InvalidTypeError
- type MarshalError
- type Marshaler
- type StaticSizer
- type UnmarshalError
- type Unmarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type End ¶
type End struct{}
type InvalidTypeError ¶
func (*InvalidTypeError) Error ¶
func (e *InvalidTypeError) Error() string
func (*InvalidTypeError) Unwrap ¶
func (e *InvalidTypeError) Unwrap() error
type MarshalError ¶
func (*MarshalError) Error ¶
func (e *MarshalError) Error() string
func (*MarshalError) Unwrap ¶
func (e *MarshalError) Unwrap() error
type Marshaler ¶
type Marshaler = encoding.BinaryMarshaler
type UnmarshalError ¶
func (*UnmarshalError) Error ¶
func (e *UnmarshalError) Error() string
func (*UnmarshalError) Unwrap ¶
func (e *UnmarshalError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.