aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/util/ringbuffer.d.tl
blob: e4726d682cd3fc64aef74a841869d7f5a1cfabd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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