Documentation
¶
Index ¶
- type Maker
- func (m *Maker) Byte(b uint8) *Maker
- func (m *Maker) Bytes(b []byte) *Maker
- func (m *Maker) Int16(v int16, littleEndian bool) *Maker
- func (m *Maker) Int32(v int32, littleEndian bool) *Maker
- func (m *Maker) Int64(v int64, littleEndian bool) *Maker
- func (m *Maker) Make() []byte
- func (m *Maker) String(s string) *Maker
- func (m *Maker) Uint16(v uint16, littleEndian bool) *Maker
- func (m *Maker) Uint32(v uint32, littleEndian bool) *Maker
- func (m *Maker) Uint64(v uint64, littleEndian bool) *Maker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Maker ¶
type Maker struct {
// contains filtered or unexported fields
}
Maker is used to define the packet maker.
func (*Maker) Bytes ¶
Bytes is used to add the specified byte slice to the packet. Note the length of the slice CANNOT change after this is set. Doing so will result in undefined behaviour.
Click to show internal directories.
Click to hide internal directories.