Documentation
¶
Overview ¶
Package byte_operations provides helper functions to (un-) marshal objects from or into a buffer
Index ¶
- type ByteOperations
- func (bo *ByteOperations) CopyBytesFromBuffer(length uint64, out []byte) ([]byte, error)
- func (bo *ByteOperations) CopyBytesToBuffer(copyBytes []byte) error
- func (bo *ByteOperations) MoveBufferPositionForward(length uint64)
- func (bo *ByteOperations) ReadUint16() uint16
- func (bo *ByteOperations) ReadUint32() uint32
- func (bo *ByteOperations) ReadUint64() uint64
- func (bo *ByteOperations) WriteByte(b byte)
- func (bo *ByteOperations) WriteUint16(value uint16)
- func (bo *ByteOperations) WriteUint32(value uint32)
- func (bo *ByteOperations) WriteUint64(value uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByteOperations ¶
func (*ByteOperations) CopyBytesFromBuffer ¶
func (bo *ByteOperations) CopyBytesFromBuffer(length uint64, out []byte) ([]byte, error)
func (*ByteOperations) CopyBytesToBuffer ¶
func (bo *ByteOperations) CopyBytesToBuffer(copyBytes []byte) error
func (*ByteOperations) MoveBufferPositionForward ¶
func (bo *ByteOperations) MoveBufferPositionForward(length uint64)
func (*ByteOperations) ReadUint16 ¶
func (bo *ByteOperations) ReadUint16() uint16
func (*ByteOperations) ReadUint32 ¶
func (bo *ByteOperations) ReadUint32() uint32
func (*ByteOperations) ReadUint64 ¶
func (bo *ByteOperations) ReadUint64() uint64
func (*ByteOperations) WriteByte ¶
func (bo *ByteOperations) WriteByte(b byte)
func (*ByteOperations) WriteUint16 ¶
func (bo *ByteOperations) WriteUint16(value uint16)
func (*ByteOperations) WriteUint32 ¶
func (bo *ByteOperations) WriteUint32(value uint32)
func (*ByteOperations) WriteUint64 ¶
func (bo *ByteOperations) WriteUint64(value uint64)
Click to show internal directories.
Click to hide internal directories.