package
1.7.2
Repository: https://github.com/lasthyphen/dijetalgo.git
Documentation: pkg.go.dev

# Functions

TryPack2DBytes attempts to pack the value as a 2D byte slice.
TryPackAddr attempts to pack the value as a 20-byte sequence.
TryPackAddrList attempts to pack the value as a list of 20-byte sequences.
TryPackByte attempts to pack the value as a byte.
TryPackBytes attempts to pack the value as a list of bytes.
TryPackHash attempts to pack the value as a 32-byte sequence.
TryPackHashes attempts to pack the value as a list of 32-byte sequences.
TryPackInt attempts to pack the value as an int.
TryPackIP attempts to pack the value as an ip port pair.
No description provided by the author
No description provided by the author
TryPackIPList attempts to pack the value as an ip port pair list.
TryPackLong attempts to pack the value as a long.
TryPackShort attempts to pack the value as a short.
TryPackStr attempts to pack the value as a string.
No description provided by the author
TryUnpack2DBytes attempts to unpack the value as a 2D byte slice.
TryUnpackAddr attempts to unpack the value as a 20-byte sequence.
TryUnpackAddrList attempts to unpack the value as a list of 20-byte sequences.
TryUnpackByte attempts to unpack a value as a byte.
TryUnpackBytes attempts to unpack the value as a list of bytes.
TryUnpackHash attempts to unpack the value as a 32-byte sequence.
TryUnpackHashes attempts to unpack the value as a list of 32-byte sequences.
TryUnpackInt attempts to unpack a value as an int.
TryUnpackIP attempts to unpack the value as an ip port pair.
No description provided by the author
No description provided by the author
TryUnpackIPList attempts to unpack the value as an ip port pair list.
TryUnpackLong attempts to unpack a value as a long.
TryUnpackShort attempts to unpack a value as a short.
TryUnpackStr attempts to unpack the value as a string.
No description provided by the author

# Constants

BoolLen is the number of bytes per bool.
ByteLen is the number of bytes per byte...
IntLen is the number of bytes per int.
IPLen is the number of bytes per IP.
LongLen is the number of bytes per long.
No description provided by the author
ShortLen is the number of bytes per short.

# Structs

Closer is a nice utility for closing a group of objects while reporting an error if one occurs.
No description provided by the author
Packer packs and unpacks a byte array from/to standard values.