haskus-binary-1.5: Haskus binary format manipulation

Safe HaskellSafe
LanguageHaskell2010

Haskus.Memory.Property

Description

Memory properties

Synopsis

Documentation

data Mutability Source #

Is the memory mutable or not?

Constructors

Mutable

Memory cells are mutable

Immutable

Memory cells are immutable

Instances
Eq Mutability Source # 
Instance details

Defined in Haskus.Memory.Property

Show Mutability Source # 
Instance details

Defined in Haskus.Memory.Property

data Heap Source #

Allocation heap

Constructors

Internal

GHC heap

External

External heap

data Pinning Source #

Is the buffer pinned into memory?

Constructors

Pinned

The buffer has a fixed associated memory address

NotPinned

The buffer contents can be freely moved to another address

Instances
Eq Pinning Source # 
Instance details

Defined in Haskus.Memory.Property

Methods

(==) :: Pinning -> Pinning -> Bool #

(/=) :: Pinning -> Pinning -> Bool #

Show Pinning Source # 
Instance details

Defined in Haskus.Memory.Property

data Finalization Source #

Is the memory automatically garbage collected?

Constructors

Collected

Automatically collected by the garbage-collector

Finalized

Finalizers are run just before the garbage collector collects the referencing entity (buffer, pointer...). The memory used by the entity may be collected too (Internal heap), explicitly freed by a finalizer or not freed at all.

NotFinalized

The memory is not automatically freed and we can't attach finalizers to the buffer.