Documentation
¶
Index ¶
- type RingBuffer
- func (rb *RingBuffer) GetCapacity() int
- func (rb *RingBuffer) GetHeadPos() int
- func (rb *RingBuffer) GetLength() int
- func (rb *RingBuffer) GetTailPos() int
- func (rb *RingBuffer) IsEmpty() bool
- func (rb *RingBuffer) IsFull() bool
- func (rb *RingBuffer) Pop(pop_size int) (bool, []byte, []byte)
- func (rb *RingBuffer) Push(data []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
type RingBuffer struct {
// contains filtered or unexported fields
}
func NewRingBuffer ¶
func NewRingBuffer(_buffer_size int) RingBuffer
func (*RingBuffer) GetCapacity ¶
func (rb *RingBuffer) GetCapacity() int
func (*RingBuffer) GetHeadPos ¶
func (rb *RingBuffer) GetHeadPos() int
func (*RingBuffer) GetLength ¶
func (rb *RingBuffer) GetLength() int
func (*RingBuffer) GetTailPos ¶
func (rb *RingBuffer) GetTailPos() int
func (*RingBuffer) IsFull ¶
func (rb *RingBuffer) IsFull() bool
func (*RingBuffer) Push ¶
func (rb *RingBuffer) Push(data []byte) bool
Click to show internal directories.
Click to hide internal directories.