Documentation
¶
Index ¶
- Constants
- type Container
- type ContainerMock
- func (c *ContainerMock) Bytes() []byte
- func (c *ContainerMock) GetByte(key uint8) (b byte, exists bool)
- func (c *ContainerMock) GetBytes(key uint8) (b []byte, exists bool)
- func (c *ContainerMock) NoEntries() int
- func (c *ContainerMock) Remove(key uint8)
- func (c *ContainerMock) SetByte(key uint8, value byte)
- func (c *ContainerMock) SetBytes(key uint8, value []byte)
- func (c *ContainerMock) Size() int
- type ContainerStub
- func (c *ContainerStub) Bytes() []byte
- func (c *ContainerStub) GetByte(key uint8) (b byte, exists bool)
- func (c *ContainerStub) GetBytes(key uint8) (b []byte, exists bool)
- func (c *ContainerStub) NoEntries() int
- func (c *ContainerStub) Remove(key uint8)
- func (c *ContainerStub) SetByte(key uint8, value byte)
- func (c *ContainerStub) SetBytes(key uint8, value []byte)
- func (c *ContainerStub) Size() int
- type ErrInvalidTLV8EncodedBuffer
- type Item
Constants ¶
View Source
const ( ErrNoSeparator = ErrInvalidTLV8EncodedBuffer("no separator between two items") ErrBadFragment = ErrInvalidTLV8EncodedBuffer("bad fragment") ErrOutOfBounds = ErrInvalidTLV8EncodedBuffer("out of bounds dues to bad length field") ErrFragmentItemInvalidLength = ErrInvalidTLV8EncodedBuffer("fragment item invalid length") ErrTooShort = ErrInvalidTLV8EncodedBuffer("too short") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container interface { GetByte(key uint8) (b byte, exists bool) GetBytes(key uint8) (b []byte, exists bool) SetByte(key uint8, value byte) SetBytes(key uint8, value []byte) Remove(key uint8) Bytes() []byte // NoEntries returns the number of nodes in the container NoEntries() int }
func NewContainer ¶
func NewContainer() Container
func UnmarshalTLVContainer ¶
type ContainerMock ¶
func NewContainerMock ¶
func NewContainerMock() *ContainerMock
func (*ContainerMock) Bytes ¶
func (c *ContainerMock) Bytes() []byte
func (*ContainerMock) GetBytes ¶
func (c *ContainerMock) GetBytes(key uint8) (b []byte, exists bool)
func (*ContainerMock) NoEntries ¶
func (c *ContainerMock) NoEntries() int
func (*ContainerMock) Remove ¶
func (c *ContainerMock) Remove(key uint8)
func (*ContainerMock) SetByte ¶
func (c *ContainerMock) SetByte(key uint8, value byte)
func (*ContainerMock) SetBytes ¶
func (c *ContainerMock) SetBytes(key uint8, value []byte)
func (*ContainerMock) Size ¶
func (c *ContainerMock) Size() int
type ContainerStub ¶
type ContainerStub struct {
// contains filtered or unexported fields
}
func NewContainerStub ¶
func NewContainerStub() *ContainerStub
func (*ContainerStub) Bytes ¶
func (c *ContainerStub) Bytes() []byte
func (*ContainerStub) GetBytes ¶
func (c *ContainerStub) GetBytes(key uint8) (b []byte, exists bool)
func (*ContainerStub) NoEntries ¶
func (c *ContainerStub) NoEntries() int
func (*ContainerStub) Remove ¶
func (c *ContainerStub) Remove(key uint8)
func (*ContainerStub) SetByte ¶
func (c *ContainerStub) SetByte(key uint8, value byte)
func (*ContainerStub) SetBytes ¶
func (c *ContainerStub) SetBytes(key uint8, value []byte)
func (*ContainerStub) Size ¶
func (c *ContainerStub) Size() int
type ErrInvalidTLV8EncodedBuffer ¶
type ErrInvalidTLV8EncodedBuffer string
func (ErrInvalidTLV8EncodedBuffer) Error ¶
func (e ErrInvalidTLV8EncodedBuffer) Error() string
Click to show internal directories.
Click to hide internal directories.