Annotate

teal-src/util/struct.d.tl @ 12714:82bca7191f13

util.crypto: Use stack space buffers Removes assumption that LUAL_BUFFERSIZE is known at pre-processing time, which it is not in Lua 5.3 and 5.4, where it is a computed macro based on sizeof. Allocation of stack space is safer and faster, no need to worry about luaL_prepbuffer failing to allocate memory and skipping free()
author Kim Alvefur <zash@zash.se>
date Mon, 11 Jul 2022 17:01:55 +0200
parent 12619:d593cb709525
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12619
d593cb709525 util.struct: Add Teal interface description file
Kim Alvefur <zash@zash.se>
parents:
diff changeset
1 local record lib
d593cb709525 util.struct: Add Teal interface description file
Kim Alvefur <zash@zash.se>
parents:
diff changeset
2 pack : function (string, ...:any) : string
d593cb709525 util.struct: Add Teal interface description file
Kim Alvefur <zash@zash.se>
parents:
diff changeset
3 unpack : function(string, string, integer) : any...
d593cb709525 util.struct: Add Teal interface description file
Kim Alvefur <zash@zash.se>
parents:
diff changeset
4 size : function(string) : integer
d593cb709525 util.struct: Add Teal interface description file
Kim Alvefur <zash@zash.se>
parents:
diff changeset
5 end
d593cb709525 util.struct: Add Teal interface description file
Kim Alvefur <zash@zash.se>
parents:
diff changeset
6 return lib