Versions in this module Expand all Collapse all v1 v1.5.5 Apr 25, 2022 Changes in this version + const LengthIndefinite + const LengthLongFormBitmask + const LengthValueBitmask + var ClassMap = map[Class]string + var Debug = false + var ErrInvalidTimeFormat = errors.New("invalid time format") + var MaxPacketLengthBytes int64 = math.MaxInt32 + var TypeMap = map[Type]string + func DecodeString(data []byte) string + func ParseGeneralizedTime(v []byte) (time.Time, error) + func ParseInt64(bytes []byte) (ret int64, err error) + func ParseReal(v []byte) (val float64, err error) + func PrintBytes(out io.Writer, buf []byte, indent string) + func PrintPacket(p *Packet) + func WritePacket(out io.Writer, p *Packet) + type Class uint8 + const ClassApplication + const ClassBitmask + const ClassContext + const ClassPrivate + const ClassUniversal + type Identifier struct + ClassType Class + Tag Tag + TagType Type + type Packet struct + ByteValue []byte + Children []*Packet + Data *bytes.Buffer + Description string + Value interface{} + func DecodePacket(data []byte) *Packet + func DecodePacketErr(data []byte) (*Packet, error) + func Encode(classType Class, tagType Type, tag Tag, value interface{}, description string) *Packet + func NewBoolean(classType Class, tagType Type, tag Tag, value bool, description string) *Packet + func NewGeneralizedTime(classType Class, tagType Type, tag Tag, value time.Time, description string) *Packet + func NewInteger(classType Class, tagType Type, tag Tag, value interface{}, description string) *Packet + func NewLDAPBoolean(classType Class, tagType Type, tag Tag, value bool, description string) *Packet + func NewReal(classType Class, tagType Type, tag Tag, value interface{}, description string) *Packet + func NewSequence(description string) *Packet + func NewString(classType Class, tagType Type, tag Tag, value, description string) *Packet + func ReadPacket(reader io.Reader) (*Packet, error) + func (p *Packet) AppendChild(child *Packet) + func (p *Packet) Bytes() []byte + type Tag uint64 + const HighTag + const HighTagContinueBitmask + const HighTagValueBitmask + const TagBMPString + const TagBitString + const TagBitmask + const TagBoolean + const TagCharacterString + const TagEOC + const TagEmbeddedPDV + const TagEnumerated + const TagExternal + const TagGeneralString + const TagGeneralizedTime + const TagGraphicString + const TagIA5String + const TagInteger + const TagNULL + const TagNumericString + const TagObjectDescriptor + const TagObjectIdentifier + const TagOctetString + const TagPrintableString + const TagRealFloat + const TagRelativeOID + const TagSequence + const TagSet + const TagT61String + const TagUTCTime + const TagUTF8String + const TagUniversalString + const TagVideotexString + const TagVisibleString + type Type uint8 + const TypeBitmask + const TypeConstructed + const TypePrimitive