# MemorySegment (Kernel)

`MemorySegment`(fRestore address [size])

  Important

  SCI1.1 only.

  MemorySegment provides access to a 256-byte block of memory that remains intact across restarts and restores.

  Parameters: | fRestore (boolean) – If 1, data is restored. If 0, data is saved. address (heapPtr) – Beginning of memory block to be saved or restored. size (number) – The size of the memory block to be saved (up to 256 bytes). Only specify this size when saving.