Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleRingBuff ¶
type SimpleRingBuff struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(bufSize int) *SimpleRingBuff
func (*SimpleRingBuff) AvailByteCnt ¶
func (b *SimpleRingBuff) AvailByteCnt() int
func (*SimpleRingBuff) Clear ¶
func (b *SimpleRingBuff) Clear()
func (*SimpleRingBuff) GetByte ¶
func (b *SimpleRingBuff) GetByte() byte
func (*SimpleRingBuff) GetBytes ¶
func (b *SimpleRingBuff) GetBytes(cnt int) []byte
Return Slice of all available bytes
func (*SimpleRingBuff) PeekBytes ¶
func (b *SimpleRingBuff) PeekBytes(cnt int) []byte
Return Slice of all available bytes without incrementing pointers
func (*SimpleRingBuff) PutByte ¶
func (b *SimpleRingBuff) PutByte(data byte)
Click to show internal directories.
Click to hide internal directories.