diff options
author | Wim <wim@42.be> | 2021-04-03 19:16:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 19:16:46 +0200 |
commit | 21eb37e471c338a90f2e23c86106f7e49e2d1196 (patch) | |
tree | e7d1cfa89f31fcf0578edae7727f2230bba744a2 /vendor/github.com/zfjagann/golang-ring/README.md | |
parent | d3b60cc445e5871971b543fde9483dba3924bf68 (diff) | |
download | matterbridge-msglm-21eb37e471c338a90f2e23c86106f7e49e2d1196.tar.gz matterbridge-msglm-21eb37e471c338a90f2e23c86106f7e49e2d1196.tar.bz2 matterbridge-msglm-21eb37e471c338a90f2e23c86106f7e49e2d1196.zip |
Update vendor (#1446)
* Update vendor
* Use upstream emoji lib again
Diffstat (limited to 'vendor/github.com/zfjagann/golang-ring/README.md')
-rw-r--r-- | vendor/github.com/zfjagann/golang-ring/README.md | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/vendor/github.com/zfjagann/golang-ring/README.md b/vendor/github.com/zfjagann/golang-ring/README.md index 1da6cf73..56988e1b 100644 --- a/vendor/github.com/zfjagann/golang-ring/README.md +++ b/vendor/github.com/zfjagann/golang-ring/README.md @@ -1,9 +1,6 @@ # ring - -[![GoDoc](https://godoc.org/github.com/zfjagann/golang-ring?status.svg)](https://godoc.org/github.com/zfjagann/golang-ring) - -- - import "github.com/zfjagann/golang-ring" + import "github.com/zealws/golang-ring" Package ring provides a simple implementation of a ring buffer. @@ -20,19 +17,27 @@ Changing this value only affects ring buffers created after it is changed. ```go type Ring struct { + sync.Mutex } ``` Type Ring implements a Circular Buffer. The default value of the Ring struct is a valid (empty) Ring buffer with capacity DefaultCapacify. -#### func (Ring) Capacity +#### func (*Ring) Capacity ```go -func (r Ring) Capacity() int +func (r *Ring) Capacity() int ``` Capacity returns the current capacity of the ring buffer. +#### func (*Ring) ContentSize + +```go +func (r *Ring) ContentSize() int +``` +ContentSize returns the current number of elements inside the ring buffer. + #### func (*Ring) Dequeue ```go |