ouroboros-consensus-0.3.1.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.FS.CRC

Description

Deprecated: Use System.FS.CRC from fs-api

Synopsis

Wrap digest functionality

newtype CRC #

Constructors

CRC 

Fields

Instances

Instances details
Eq CRC 
Instance details

Defined in System.FS.CRC

Methods

(==)CRCCRCBool Source #

(/=)CRCCRCBool Source #

Show CRC 
Instance details

Defined in System.FS.CRC

Methods

showsPrecIntCRCShowS Source #

showCRCString Source #

showList ∷ [CRC] → ShowS Source #

Generic CRC 
Instance details

Defined in System.FS.CRC

Associated Types

type Rep CRCTypeType Source #

Methods

fromCRCRep CRC x Source #

toRep CRC x → CRC Source #

Storable CRC 
Instance details

Defined in System.FS.CRC

Methods

sizeOfCRCInt Source #

alignmentCRCInt Source #

peekElemOffPtr CRCIntIO CRC Source #

pokeElemOffPtr CRCIntCRCIO () Source #

peekByteOffPtr b → IntIO CRC Source #

pokeByteOffPtr b → IntCRCIO () Source #

peekPtr CRCIO CRC Source #

pokePtr CRCCRCIO () Source #

NoThunks CRC 
Instance details

Defined in System.FS.CRC

Methods

noThunks ∷ Context → CRCIO (Maybe ThunkInfo) #

wNoThunks ∷ Context → CRCIO (Maybe ThunkInfo) #

showTypeOfProxy CRCString #

type Rep CRC 
Instance details

Defined in System.FS.CRC

type Rep CRC = D1 ('MetaData "CRC" "System.FS.CRC" "fs-api-0.1.0.0-58864323a5d3753cf4c9f98db8cb66d1e00cfb03d94ab9ebb31a0e9268bf84f1" 'True) (C1 ('MetaCons "CRC" 'PrefixI 'True) (S1 ('MetaSel ('Just "getCRC") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)))

computeCRC ∷ CRC32 a ⇒ a → CRC #

updateCRC ∷ CRC32 a ⇒ a → CRCCRC #

File system functions with CRC functionality

hGetAllAtCRCMonad m ⇒ HasFS m h → Handle h → AbsOffset → m (ByteString, CRC) #

hPutAllCRC ∷ (HasCallStack, Monad m) ⇒ HasFS m h → Handle h → ByteString → m (Word64, CRC) #