Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-asn1-ber/asn1-ber
/ functions
Functions
75 in github.com/go-asn1-ber/asn1-ber
⨍
Functions
75
◇
Types & classes
5
↓ 17 callers
Method
Bytes
()
ber.go:474
↓ 14 callers
Function
buff
buff is an alias to build a bytes.Reader from an explicit sequence of bytes
ber_test.go:201
↓ 13 callers
Function
encodeInteger
(i int64)
ber.go:249
↓ 8 callers
Function
Encode
(classType Class, tagType Type, tag Tag, value interface{}, description string)
ber.go:489
↓ 7 callers
Function
DecodePacketErr
DecodePacketErr decodes the given bytes into a single Packet If a decode error is encountered, nil is returned.
ber.go:288
↓ 7 callers
Function
NewString
(classType Class, tagType Type, tag Tag, value, description string)
ber.go:611
↓ 6 callers
Function
ParseInt64
(bytes []byte)
ber.go:232
↓ 6 callers
Function
ReadPacket
ReadPacket reads a single Packet from the reader.
ber.go:220
↓ 5 callers
Function
DecodePacket
DecodePacket decodes the given bytes into a single Packet If a decode error is encountered, nil is returned.
ber.go:280
↓ 5 callers
Function
DecodeString
(data []byte)
ber.go:228
↓ 5 callers
Function
unexpectedEOF
(err error)
util.go:14
↓ 4 callers
Function
OIDToString
(oi []int)
ber.go:719
↓ 4 callers
Function
readByte
(reader io.Reader)
util.go:5
↓ 3 callers
Function
encodeFloat
(v float64)
real.go:12
↓ 3 callers
Function
parseObjectIdentifier
parseObjectIdentifier parses an OBJECT IDENTIFIER from the given bytes and returns it. An object identifier is a sequence of variable length integers
ber.go:737
↓ 3 callers
Function
readPacket
readPacket reads a single Packet from the reader, returning the number of bytes read.
ber.go:297
↓ 2 callers
Method
AppendChild
(child *Packet)
ber.go:484
↓ 2 callers
Function
NewInteger
(classType Class, tagType Type, tag Tag, value interface{}, description string)
ber.go:577
↓ 2 callers
Function
ParseGeneralizedTime
ParseGeneralizedTime parses a string value and if it conforms to GeneralizedTime[^0] format, will return a time.Time for that value. [^0]: https://ww
generalizedTime.go:20
↓ 2 callers
Function
ParseReal
(v []byte)
real.go:39
↓ 2 callers
Function
appendBase128Int
(dst []byte, n int64)
ber.go:691
↓ 2 callers
Function
encodeHighTag
(tag Tag)
identifier.go:87
↓ 2 callers
Function
encodeIdentifier
(identifier Identifier)
identifier.go:68
↓ 2 callers
Function
encodeLength
(length int)
length.go:73
↓ 2 callers
Function
encodeOID
encodeOID takes a string representation of an OID and returns its DER-encoded byte slice along with any error.
ber.go:667
↓ 2 callers
Function
is64bit
(a, b string)
suite_test.go:88
↓ 2 callers
Function
parseBase128Int
parseBase128Int parses a base-128 encoded int from the given offset in the given byte slice. It returns the value and the new offset.
ber.go:777
↓ 2 callers
Function
printPacket
(out io.Writer, p *Packet, indent int, printBytes bool)
ber.go:201
↓ 2 callers
Function
readHeader
(reader io.Reader)
header.go:9
↓ 2 callers
Function
readIdentifier
(reader io.Reader)
identifier.go:9
↓ 2 callers
Function
readLength
(reader io.Reader)
length.go:9
↓ 1 callers
Function
DescribePacket
Return a string describing packet content. This is not recursive, If the packet is a sequence, use `printPacket()`, or browse sequence yourself.
ber.go:179
↓ 1 callers
Function
NewBoolean
(classType Class, tagType Type, tag Tag, value bool, description string)
ber.go:546
↓ 1 callers
Function
NewLDAPBoolean
NewLDAPBoolean returns a RFC 4511-compliant Boolean packet.
ber.go:562
↓ 1 callers
Function
NewSequence
(description string)
ber.go:542
↓ 1 callers
Function
PrintBytes
(out io.Writer, buf []byte, indent string)
ber.go:153
↓ 1 callers
Function
base128IntLength
(n int64)
ber.go:706
↓ 1 callers
Function
encodeUnsignedInteger
(i uint64)
content_int.go:3
↓ 1 callers
Function
int64Length
(i int64)
ber.go:262
↓ 1 callers
Function
isEOCPacket
(p *Packet)
util.go:21
↓ 1 callers
Function
isPrintableString
(val string)
ber.go:457
↓ 1 callers
Function
parseBinaryFloat
(v []byte)
real.go:63
↓ 1 callers
Function
parseDecimalFloat
(v []byte)
real.go:127
↓ 1 callers
Function
parseSpecialFloat
(v []byte)
real.go:148
↓ 1 callers
Function
uint64Length
(i uint64)
content_int.go:16
Function
FuzzDecodePacket
(f *testing.F)
fuzz_test.go:16
Function
NewGeneralizedTime
(classType Class, tagType Type, tag Tag, value time.Time, description string)
ber.go:620
Function
NewOID
(classType Class, tagType Type, tag Tag, value interface{}, description string)
ber.go:647
Function
NewReal
(classType Class, tagType Type, tag Tag, value interface{}, description string)
ber.go:633
Function
PrintPacket
(p *Packet)
ber.go:172
Function
TestBinaryInteger
(t *testing.T)
ber_test.go:169
Function
TestBinaryOctetString
(t *testing.T)
ber_test.go:192
Function
TestBoolean
(t *testing.T)
ber_test.go:23
Function
TestEOF
(t *testing.T)
ber_test.go:205
Function
TestEncodeDecodeInteger
(t *testing.T)
ber_test.go:10
Function
TestEncodeDecodeOID
(t *testing.T)
ber_test.go:103
Function
TestEncodeHighTag
(t *testing.T)
identifier_test.go:346
Function
TestEncodeIdentifier
(t *testing.T)
identifier_test.go:230
Function
TestEncodeLength
(t *testing.T)
length_test.go:130
Function
TestIA5String
(t *testing.T)
string_test.go:7
Function
TestInteger
(t *testing.T)
ber_test.go:59
Function
TestLDAPBoolean
(t *testing.T)
ber_test.go:41
Function
TestParseGeneralizedTime
(t *testing.T)
generalizedTime_test.go:8
Function
TestPrintableString
(t *testing.T)
string_test.go:30
Function
TestReadHeader
(t *testing.T)
header_test.go:9
Function
TestReadIdentifier
(t *testing.T)
identifier_test.go:10
Function
TestReadLength
(t *testing.T)
length_test.go:10
Function
TestReadPacket
(t *testing.T)
ber_test.go:151
Function
TestRealEncoding
(t *testing.T)
real_test.go:10
Function
TestSequenceAndAppendChild
(t *testing.T)
ber_test.go:121
Function
TestString
(t *testing.T)
ber_test.go:83
Function
TestSuiteDecodePacket
(t *testing.T)
suite_test.go:97
Function
TestSuiteReadPacket
(t *testing.T)
suite_test.go:148
Function
TestUTF8String
(t *testing.T)
string_test.go:53
Function
WritePacket
(out io.Writer, p *Packet)
ber.go:168