Software /
code /
prosody
Comparison
teal-src/util/ringbuffer.d.tl @ 11578:dfc5d8f6788e
teal: Add type spec for util.ringbuffer
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 May 2021 23:16:01 +0200 |
comparison
equal
deleted
inserted
replaced
11577:60bee6822d79 | 11578:dfc5d8f6788e |
---|---|
1 local record lib | |
2 record ringbuffer | |
3 find : function (ringbuffer, string) : integer | |
4 discard : function (ringbuffer, integer) : boolean | |
5 read : function (ringbuffer, integer, boolean) : string | |
6 readuntil : function (ringbuffer, string) : string | |
7 write : function (ringbuffer, string) : integer | |
8 size : function (ringbuffer) : integer | |
9 length : function (ringbuffer) : integer | |
10 sub : function (ringbuffer, integer, integer) : string | |
11 byte : function (ringbuffer, integer, integer) : integer... | |
12 free : function (ringbuffer) : integer | |
13 end | |
14 | |
15 new : function (integer) : ringbuffer | |
16 end | |
17 | |
18 return lib | |
19 | |
20 |