teal-src/util/ringbuffer.d.tl
author Kim Alvefur <zash@zash.se>
Fri, 27 May 2022 14:45:35 +0200
branch0.12
changeset 12530 252ed01896dd
parent 11582 dfc5d8f6788e
permissions -rw-r--r--
mod_smacks: Bounce unhandled stanzas from local origin (fix #1759) Sending stanzas with a remote session as origin when the stanzas have a local JID in the from attribute trips validation in core.stanza_router, leading to warnings: > Received a stanza claiming to be from remote.example, over a stream authed for localhost.example Using module:send() uses the local host as origin, which is fine here.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11582
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     1
local record lib
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     2
	record ringbuffer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     3
		find : function (ringbuffer, string) : integer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     4
		discard : function (ringbuffer, integer) : boolean
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     5
		read : function (ringbuffer, integer, boolean) : string
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     6
		readuntil : function (ringbuffer, string) : string
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     7
		write : function (ringbuffer, string) : integer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     8
		size : function (ringbuffer) : integer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
     9
		length : function (ringbuffer) : integer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    10
		sub : function (ringbuffer, integer, integer) : string
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    11
		byte : function (ringbuffer, integer, integer) : integer...
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    12
		free : function (ringbuffer) : integer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    13
	end
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    14
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    15
	new : function (integer) : ringbuffer
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    16
end
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    17
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    18
return lib
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    19
dfc5d8f6788e teal: Add type spec for util.ringbuffer
Kim Alvefur <zash@zash.se>
parents:
diff changeset
    20