Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Byte is 8 bits Byte int64 = 1 // KibiByte (KiB) is 1024 Bytes KibiByte = Byte * 1024 // MebiByte (MiB) is 1024 KiB MebiByte = KibiByte * 1024 // GibiByte (GiB) is 1024 MiB GibiByte = MebiByte * 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶ added in v0.19.0
type RingBuffer struct {
// contains filtered or unexported fields
}
RingBuffer struct satisfies io.ReadWrite interface.
ReadBuffer is a revolving buffer data structure, which can be used to store snapshots of data in a revolving window.
func NewRingBuffer ¶ added in v0.19.0
func NewRingBuffer(slice []byte) *RingBuffer
NewRingBuffer method takes in a byte slice as an input and returns a RingBuffer.
Click to show internal directories.
Click to hide internal directories.