{"modulePath":"github.com/GoPlugin/pluginV2Lib/libocr","version":"v0.0.0-20230622090102-3f0f60f3c385","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package msgbuf\n\n## Types\n\n```go\ntype MessageBuffer struct {\n\t// contains filtered or unexported fields\n}\n```\nMessageBuffer implements a fixed capacity ringbuffer for items of type \\[]byte.\n\n```go\nfunc NewMessageBuffer(cap int) *MessageBuffer\n```\n\n```go\nfunc (rb *MessageBuffer) Peek() []byte\n```\nPeek at the front item\n\n```go\nfunc (rb *MessageBuffer) Pop() []byte\n```\nPop front item\n\n```go\nfunc (rb *MessageBuffer) Push(msg []byte) []byte\n```\nPush new item to back. If the additional item would lead to the capacity being exceeded, remove the front item first.\n\nReturns the removed front item, or nil.\n\n","path":"github.com/GoPlugin/pluginV2Lib/libocr/ragep2p/internal/msgbuf","name":"msgbuf","synopsis":"","isRedistributable":true}
