Lib_Buffer.md 313 Bytes

Lib_Buffer

Lib_Buffer

This library implements a bytes32 storage array with some additional gas-optimized functionality. In particular, it encodes its length as a uint40, and tightly packs this with an overwritable "extra data" field so we can store more information with a single SSTORE.