IMPORTANT: due to a drive failure, as of 13-Mar-2021, the Mercurial repository had to be re-mirrored, which changed every commit SHA. The old SHAs and trees are backed up in the vault branches. Please migrate to the new branches as soon as you can.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
prosody/teal-src/util/ringbuffer.d.tl

20 lines
606 B

local record lib
record ringbuffer
find : function (ringbuffer, string) : integer
discard : function (ringbuffer, integer) : boolean
read : function (ringbuffer, integer, boolean) : string
readuntil : function (ringbuffer, string) : string
write : function (ringbuffer, string) : integer
size : function (ringbuffer) : integer
length : function (ringbuffer) : integer
sub : function (ringbuffer, integer, integer) : string
byte : function (ringbuffer, integer, integer) : integer...
free : function (ringbuffer) : integer
end
new : function (integer) : ringbuffer
end
return lib