# HG changeset patch # User Kim Alvefur # Date 1621545361 -7200 # Node ID dfc5d8f6788e9fb82fbcd2b350741503f54ff892 # Parent 60bee6822d79dd604b09e93a90727b68851c3274 teal: Add type spec for util.ringbuffer diff -r 60bee6822d79 -r dfc5d8f6788e teal-src/util/ringbuffer.d.tl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/teal-src/util/ringbuffer.d.tl Thu May 20 23:16:01 2021 +0200 @@ -0,0 +1,20 @@ +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 + +