Buffer.getMaxMemory
uint getMaxMemory()Gets the maximum amount of memory blocks that a buffer can hold. This is a compile time constant that can be queried with the function.
When more memory blocks are added, existing memory blocks will be merged together to make room for the new block.
Returns
the maximum amount of memory blocks that a buffer can hold.