Documentation
¶
Index ¶
- Variables
- func EncodeInt(in int) []byte
- func ReadLen(r io.Reader) (length int, n int, err error)
- func ReadTag(r io.Reader) (tag int, n int, err error)
- type TagValue
- func (tv TagValue) Bytes() []byte
- func (tv TagValue) IsConstructed() bool
- func (tv TagValue) Len() []byte
- func (tv TagValue) MarshalJSON() ([]byte, error)
- func (tv *TagValue) ReadFrom(r io.Reader) (n int64, err error)
- func (tv TagValue) String() string
- func (tv TagValue) Tag() []byte
- func (tv TagValue) WriteTo(w io.Writer) (n int64, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound is returned when requested tag is not present in TLV structure
Functions ¶
Types ¶
type TagValue ¶
TagValue pair
func (TagValue) IsConstructed ¶
IsConstructed returns true if the value is constructed type(contains other TLV records)
func (TagValue) MarshalJSON ¶
MarshalJSON implements json.Marshaller
Click to show internal directories.
Click to hide internal directories.