LuaRocks.org had a security incident in September 2026. Read the incident report.

bytesview

Utilities around the bytesview protocols, for module-agnostic buffers

$ luarocks install bytesview

Functions that help work with the bytesview protocols.

The bytesview protocols are the following metamethods:

metatable['bytesview:mutable'] = function(self) return lightuserdata_or_bytesview_mutable, maybe_offset, maybe_size end

metatable['bytesview:readonly'] = function(self) return lightuserdata_or_bytesview_readonly, maybe_offset, maybe_size end

This library is not necessary to work in these protocols.

Versions

0.0.1-21 hour ago0 downloads
0.0.1-11 hour ago0 downloads

Dependencies

lua >=5.1

Labels

Manifests