Documentation
¶
Index ¶
- Variables
- type ITLV
- type TLV
- func (c *TLV) CheckLength(length int) bool
- func (c *TLV) CheckLengthBuffer(buffer *Utils.ByteBuffer) bool
- func (c *TLV) Construct()
- func (c *TLV) GetData() (*Utils.ByteBuffer, *Exception.Exception)
- func (c *TLV) GetLength() (len int, err *Exception.Exception)
- func (c *TLV) GetTag() int16
- func (c *TLV) GetValueData() (*Utils.ByteBuffer, *Exception.Exception)
- func (c *TLV) HasValue() bool
- func (c *TLV) MarkValueSet()
- func (c *TLV) SetData(bb *Utils.ByteBuffer) (err *Exception.Exception)
- func (c *TLV) SetTag(tag int16)
- func (c *TLV) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVByte
- func (c *TLVByte) Construt()
- func (c *TLVByte) GetValue() (byte, *Exception.Exception)
- func (c *TLVByte) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
- func (c *TLVByte) SetValue(value byte) *Exception.Exception
- func (c *TLVByte) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVEmpty
- func (c *TLVEmpty) Construct()
- func (c *TLVEmpty) GetValue() (bool, *Exception.Exception)
- func (c *TLVEmpty) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
- func (c *TLVEmpty) SetValue(value bool) *Exception.Exception
- func (c *TLVEmpty) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVInt
- func (c *TLVInt) Construct()
- func (c *TLVInt) GetValue() (int32, *Exception.Exception)
- func (c *TLVInt) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
- func (c *TLVInt) SetValue(value int32) *Exception.Exception
- func (c *TLVInt) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVOctets
- func NewTLVOctets() *TLVOctets
- func NewTLVOctetsWithTag(tag int16) *TLVOctets
- func NewTLVOctetsWithTagLength(tag int16, min, max int) *TLVOctets
- func NewTLVOctetsWithTagLengthValue(tag int16, min, max int, buf *Utils.ByteBuffer) *TLVOctets
- func NewTLVOctetsWithTagValue(tag int16, buf *Utils.ByteBuffer) *TLVOctets
- func (c *TLVOctets) Construct()
- func (c *TLVOctets) GetValue() (*Utils.ByteBuffer, *Exception.Exception)
- func (c *TLVOctets) GetValueData() (*Utils.ByteBuffer, *Exception.Exception)
- func (c *TLVOctets) SetValue(buffer *Utils.ByteBuffer) *Exception.Exception
- func (c *TLVOctets) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVShort
- func (c *TLVShort) Construct()
- func (c *TLVShort) GetValue() (int16, *Exception.Exception)
- func (c *TLVShort) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
- func (c *TLVShort) SetValue(value int16) *Exception.Exception
- func (c *TLVShort) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVString
- func (c *TLVString) Construct()
- func (c *TLVString) GetValue() (string, *Exception.Exception)
- func (c *TLVString) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
- func (c *TLVString) SetValue(value string) *Exception.Exception
- func (c *TLVString) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
- type TLVUByte
- func (c *TLVUByte) Construct()
- func (c *TLVUByte) GetValue() (uint8, *Exception.Exception)
- func (c *TLVUByte) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
- func (c *TLVUByte) SetValue(value uint8) *Exception.Exception
- func (c *TLVUByte) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
Constants ¶
This section is empty.
Variables ¶
View Source
var DONT_CHECK_LIMIT = -1
Functions ¶
This section is empty.
Types ¶
type ITLV ¶
type ITLV interface { GetTag() int16 SetTag(tag int16) SetData(bb *Utils.ByteBuffer) (err *Exception.Exception) GetData() (*Utils.ByteBuffer, *Exception.Exception) HasValue() bool GetValueData() (*Utils.ByteBuffer, *Exception.Exception) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception }
type TLV ¶
func NewTLVWithTag ¶
func NewTLVWithTagAndLength ¶
func (*TLV) CheckLength ¶
func (*TLV) CheckLengthBuffer ¶
func (c *TLV) CheckLengthBuffer(buffer *Utils.ByteBuffer) bool
func (*TLV) GetValueData ¶
func (c *TLV) GetValueData() (*Utils.ByteBuffer, *Exception.Exception)
func (*TLV) MarkValueSet ¶
func (c *TLV) MarkValueSet()
func (*TLV) SetValueData ¶
func (c *TLV) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVByte ¶
func NewTLVByte ¶
func NewTLVByte() *TLVByte
func NewTLVByteWithTag ¶
func NewTLVByteWithTagValue ¶
func (*TLVByte) GetValueData ¶
func (c *TLVByte) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
func (*TLVByte) SetValueData ¶
func (c *TLVByte) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVEmpty ¶
func NewTLVEmpty ¶
func NewTLVEmpty() *TLVEmpty
func NewTLVEmptyWithTag ¶
func NewTLVEmptyWithTagValue ¶
func (*TLVEmpty) GetValueData ¶
func (c *TLVEmpty) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
func (*TLVEmpty) SetValueData ¶
func (c *TLVEmpty) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVInt ¶
func NewTLVIntWithTag ¶
func NewTLVIntWithTagValue ¶
func (*TLVInt) GetValueData ¶
func (c *TLVInt) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
func (*TLVInt) SetValueData ¶
func (c *TLVInt) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVOctets ¶
type TLVOctets struct { TLV Value *Utils.ByteBuffer }
func NewTLVOctets ¶
func NewTLVOctets() *TLVOctets
func NewTLVOctetsWithTag ¶
func NewTLVOctetsWithTagLengthValue ¶
func NewTLVOctetsWithTagLengthValue(tag int16, min, max int, buf *Utils.ByteBuffer) *TLVOctets
func NewTLVOctetsWithTagValue ¶
func NewTLVOctetsWithTagValue(tag int16, buf *Utils.ByteBuffer) *TLVOctets
func (*TLVOctets) GetValue ¶
func (c *TLVOctets) GetValue() (*Utils.ByteBuffer, *Exception.Exception)
func (*TLVOctets) GetValueData ¶
func (c *TLVOctets) GetValueData() (*Utils.ByteBuffer, *Exception.Exception)
func (*TLVOctets) SetValue ¶
func (c *TLVOctets) SetValue(buffer *Utils.ByteBuffer) *Exception.Exception
func (*TLVOctets) SetValueData ¶
func (c *TLVOctets) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVShort ¶
func NewTLVShort ¶
func NewTLVShort() *TLVShort
func NewTLVShortWithTag ¶
func NewTLVShortWithTagValue ¶
func (*TLVShort) GetValueData ¶
func (c *TLVShort) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
func (*TLVShort) SetValueData ¶
func (c *TLVShort) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVString ¶
func NewTLVString ¶
func NewTLVString() *TLVString
func NewTLVStringWithTag ¶
func (*TLVString) GetValueData ¶
func (c *TLVString) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
func (*TLVString) SetValueData ¶
func (c *TLVString) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
type TLVUByte ¶
func NewTLVUByte ¶
func NewTLVUByte() *TLVUByte
func NewTLVUByteWithTag ¶
func NewTLVUByteWithTagValue ¶
func (*TLVUByte) GetValueData ¶
func (c *TLVUByte) GetValueData() (b *Utils.ByteBuffer, er *Exception.Exception)
func (*TLVUByte) SetValueData ¶
func (c *TLVUByte) SetValueData(buffer *Utils.ByteBuffer) *Exception.Exception
Click to show internal directories.
Click to hide internal directories.