Raaz.Core.Types

# Overview.

# Timing safe equality checking.

class Equality a

(===)

data Result

# Endianess aware types.

class EndianStore w

copyFromBytes

copyToBytes

## Endian explicit word types.

data LE w

data BE w

littleEndian

bigEndian

## Helper functions for endian aware storing and loading.

storeAt

storeAtIndex

loadFrom

loadFromIndex

# Pointers, offsets, and alignment

type Pointer

## Type safe length units.

class LengthUnit u

data BYTES a

data BITS a

inBits

sizeOf

### Some length arithmetic

bitsQuotRem

bytesQuotRem

bitsQuot

bytesQuot

atLeast

atLeastAligned

atMost

## Types measuring alignment

data Alignment

wordAlignment

data ALIGN

alignment

alignPtr

movePtr

alignedSizeOf

nextAlignedPtr

peekAligned

pokeAligned

## Allocation functions.

allocaAligned

allocaSecureAligned

allocaBuffer

allocaSecure

mallocBuffer

## Some buffer operations

memset

memmove

memcpy

hFillBuf

# Types to force alignment.

data Aligned align w

unAligned

aligned16Bytes

aligned32Bytes

aligned64Bytes

# Length encoded tuples

data Tuple dim a

type Dimension dim

dimension

initial

diagonal

repeatM

## Unsafe operations

unsafeFromList

# Copying.

data Src a

data Dest a

source

destination

class Describable d