Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgryski/go-bitstream
/ functions
Functions
21 in github.com/dgryski/go-bitstream
⨍
Functions
21
◇
Types & classes
5
↓ 7 callers
Function
NewReader
NewReader returns a BitReader that returns a single bit at a time from 'r'
bitstream.go:33
↓ 7 callers
Method
WriteBit
WriteBit writes a single bit to the stream, writing a new byte to 'w' if required.
bitstream.go:71
↓ 6 callers
Function
NewWriter
NewWriter returns a BitWriter that buffers bits and write the resulting bytes to 'w'
bitstream.go:54
↓ 5 callers
Method
ReadBit
ReadBit returns the next bit from the stream, reading a new byte from the underlying reader if required.
bitstream.go:40
↓ 5 callers
Method
WriteBits
WriteBits writes the nbits least significant bits of u, most-significant-bit first.
bitstream.go:181
↓ 4 callers
Method
ReadBits
ReadBits reads nbits from the stream
bitstream.go:137
↓ 4 callers
Method
ReadByte
ReadByte reads a single byte from the stream, regardless of alignment
bitstream.go:105
↓ 3 callers
Method
Read
(p []byte)
bitstream_test.go:71
↓ 3 callers
Method
WriteByte
WriteByte writes a single byte to the stream, regardless of alignment
bitstream.go:91
↓ 2 callers
Method
Flush
Flush empties the currently in-process byte by filling it with 'bit'.
bitstream.go:168
↓ 2 callers
Method
Reset
Reset replaces the underlying io.Reader with the provided reader and resets all interal state to its zero value, allowing for reuse of the BitReader w
bitstream.go:208
↓ 2 callers
Method
Write
(p []byte)
bitstream_test.go:183
Method
Pending
()
bitstream.go:61
Method
Reset
Reset replaces the underlying io.Writer with the provided writer and resets all internal state to its initial value allowing for reuse of the BitWrite
bitstream.go:217
Method
Resume
(data byte, count uint8)
bitstream.go:65
Function
TestBitStream
(t *testing.T)
bitstream_test.go:92
Function
TestBitStreamEOF
(t *testing.T)
bitstream_test.go:11
Function
TestBitStreamReadEOF
(t *testing.T)
bitstream_test.go:80
Function
TestByteStream
(t *testing.T)
bitstream_test.go:120
Function
TestErrorPropagation
(t *testing.T)
bitstream_test.go:186
Function
TestReset
(t *testing.T)
bitstream_test.go:210