DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Package Verada.Storage

Verada.Storage: the machine's memory, as the library's contracts state it. No string, text or container in memory holds Length_Bound or more elements (a word-sized fact: memory is smaller), so the length of two of them joined is still a Natural. An operation that makes a longer one calls Reserve first, which raises Storage_Error as an allocation the heap cannot make does; so no operation needs a precondition on the sizes it is given.

Length_Bound

Length_Bound : constant := 2 ** 60;

Reserve

procedure Reserve (Count : Long_Long_Long_Integer)
  with Import, Convention => Ada, External_Name => "verada_rt_reserve", Global => null,
       Post => Count < Length_Bound;

room for Count elements, about to be made: Storage_Error when memory cannot hold them