{"modulePath":"github.com/unitytech/client-go","version":"v10.0.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package buffer\n\n## Types\n\n```go\ntype RingGrowing struct {\n\t// contains filtered or unexported fields\n}\n```\nRingGrowing is a growing ring buffer. Not thread safe.\n\n```go\nfunc NewRingGrowing(initialSize int) *RingGrowing\n```\nNewRingGrowing constructs a new RingGrowing instance with provided parameters.\n\n```go\nfunc (r *RingGrowing) ReadOne() (data interface{}, ok bool)\n```\nReadOne reads (consumes) first item from the buffer if it is available, otherwise returns false.\n\n```go\nfunc (r *RingGrowing) WriteOne(data interface{})\n```\nWriteOne adds an item to the end of the buffer, growing it if it is full.\n\n","path":"github.com/unitytech/client-go/util/buffer","name":"buffer","synopsis":"","isRedistributable":true}
