File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ function buf:ref() end
262262--- Serializes (encodes) the Lua object to the buffer
263263---
264264--- This function may throw an error when attempting to serialize unsupported object types, circular references or deeply nested tables.
265- --- @param obj string.buffer.data
265+ --- @param obj any
266266--- @return string.buffer
267267function buf :encode (obj ) end
268268
@@ -277,14 +277,14 @@ function buf:encode(obj) end
277277---
278278--- Attempting to de-serialize an FFI type will throw an error, if the FFI library is not built-in or has not been loaded, yet.
279279---
280- --- @return string.buffer.data | nil obj
280+ --- @return any obj
281281function buf :decode () end
282282
283283
284284--- Serializes (encodes) the Lua object obj
285285---
286286--- This function may throw an error when attempting to serialize unsupported object types, circular references or deeply nested tables.
287- --- @param obj string.buffer.data
287+ --- @param obj any
288288--- @return string
289289function buffer .encode (obj ) end
290290
@@ -298,7 +298,7 @@ function buffer.encode(obj) end
298298--- Attempting to de-serialize an FFI type will throw an error, if the FFI library is not built-in or has not been loaded, yet.
299299---
300300--- @param str string
301- --- @return string.buffer.data | nil obj
301+ --- @return any obj
302302function buffer .decode (str ) end
303303
304304
You can’t perform that action at this time.
0 commit comments