package
1.3.4
Repository: https://github.com/getdatcrypto/nimbus.git
Documentation: pkg.go.dev

# Functions

DecInt64 decodes a slice of 8 bytes into an int64.
DecUint64 decodes a slice of 8 bytes into a uint64.
EncInt64 encodes an int64 as a slice of 8 bytes.
EncUint64 encodes a uint64 as a slice of 8 bytes.
Marshal returns the encoding of v.
MarshalAll encodes all of its inputs and returns their concatenation.
NewDecoder converts r to a Decoder.
NewEncoder converts w to an Encoder.
ReadFile reads the contents of a file and decodes them into v.
ReadObject reads and decodes a length-prefixed and marshalled object.
ReadPrefixedBytes reads an 8-byte length prefixes, followed by the number of bytes specified in the prefix.
Unmarshal decodes the encoded value b and stores it in v, which must be a pointer.
UnmarshalAll decodes the encoded values in b and stores them in vs, which must be pointers.
WriteFile writes v to a file.
WriteInt writes i to w.
WriteObject writes a length-prefixed object to w.
WritePrefixedBytes writes a length-prefixed byte slice to w.
WriteUint64 writes u to w.

# Constants

MaxObjectSize refers to the maximum size an object could have.
5 MB.

# Structs

A Decoder reads and decodes values from an input stream.
An Encoder writes objects to an output stream.
ErrSliceTooLarge is an error when encoded slice is too large.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

ErrObjectTooLarge is an error when encoded object exceeds size limit.