Documentation
¶
Index ¶
- func Pack(w io.Writer, data interface{}) error
- func PackWithOptions(w io.Writer, data interface{}, options *Options) error
- func PackWithOrder(w io.Writer, data interface{}, order binary.ByteOrder) error
- func Sizeof(data interface{}) (int, error)
- func SizeofWithOptions(data interface{}, options *Options) (int, error)
- func Unpack(r io.Reader, data interface{}) error
- func UnpackWithOptions(r io.Reader, data interface{}, options *Options) error
- func UnpackWithOrder(r io.Reader, data interface{}, order binary.ByteOrder) error
- type Custom
- type Field
- type Fields
- func (f Fields) Pack(buf []byte, val reflect.Value, options *Options) (int, error)
- func (f Fields) SetByteOrder(order binary.ByteOrder)
- func (f Fields) Sizeof(val reflect.Value, options *Options) int
- func (f Fields) String() string
- func (f Fields) Unpack(r io.Reader, val reflect.Value, options *Options) error
- type Float16
- type Off_t
- type Options
- type Packer
- type Size_t
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PackWithOrder ¶
Deprecated. Use PackWithOptions.
func SizeofWithOptions ¶
func UnpackWithOptions ¶
Types ¶
type Field ¶
type Field struct {
Name string
Ptr bool
Index int
Type Type
Array bool
Slice bool
Len int
Order binary.ByteOrder
Sizeof []int
Sizefrom []int
Fields Fields
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.