Documentation
¶
Overview ¶
Package b64buff implements a bit buffer that can be represented as URL string.
The bit buffer allows to read and write any number of bits. The encoding is similar to Base64 but different. It has no padding. Currently it cannot be changed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is a bit buffer.
func (*Buffer) ReadAllB64 ¶
ReadAllB64 reads the whole buffer to the string.
The call fails if the read is not aligned. The read is aligned if the sum of read bits from the buffer can be divided by 6.
func (*Buffer) ReadUInt32 ¶
ReadUInt32 reads nbBits of the buffer into the lower bits of ret.
Click to show internal directories.
Click to hide internal directories.