cobot-io-0.1.5.1: Biological data file formats and IO
Safe HaskellSafe-Inferred
LanguageHaskell2010

Bio.MMTF.Decode.Codec

Synopsis

Documentation

codecCommon :: Binary a => (ByteString -> a) -> Int -> ByteString -> [a] Source #

data BinaryData Source #

Constructors

BD 

Instances

Instances details
Show BinaryData Source # 
Instance details

Defined in Bio.MMTF.Decode.Codec

parseBinary :: ByteString -> BinaryData Source #

Parse useless header for binary data

codec1 :: BinaryData -> [Float] Source #

Interpret bytes as array of 32-bit floating-point numbers.

codec2 :: BinaryData -> [Int8] Source #

Interpret bytes as array of 8-bit signed integers.

codec3 :: BinaryData -> [Int16] Source #

Interpret bytes as array of 16-bit signed integers.

codec4 :: BinaryData -> [Int32] Source #

Interpret bytes as array of 32-bit signed integers.

codec5 :: BinaryData -> [Text] Source #

Interpret bytes as array of 8-bit unsigned integers, then iteratively consume length many bytes to form a string array.

codec6 :: BinaryData -> [Char] Source #

Interpret bytes as array of 32-bit signed integers, then run-length decode into array of characters.

codec7 :: BinaryData -> [Int32] Source #

Interpret bytes as array of 32-bit signed integers, then run-length decode into array of 32-bit signed integers.

codec8 :: BinaryData -> [Int32] Source #

Interpret bytes as array of 32-bit signed integers, then run-length decode into array of 32-bit signed integers, then delta decode into array of 32-bit signed integers.

codec9 :: BinaryData -> [Float] Source #

Interpret bytes as array of 32-bit signed integers, then run-length decode into array of 32-bit signed integers, then integer decode into array of 32-bit floating-point numbers using the divisor parameter.

codec10 :: BinaryData -> [Float] Source #

Interpret bytes as array of 16-bit signed integers, then unpack into array of 32-bit integers, then delta decode into array of 32-bit integers, then integer decode into array of 32-bit floating-point numbers using the divisor parameter.

codec11 :: BinaryData -> [Float] Source #

Interpret bytes as array of 16-bit signed integers, then integer decode into array of 32-bit floating-point numbers using the divisor parameter.

codec12 :: BinaryData -> [Float] Source #

Interpret bytes as array of 16-bit signed integers, then unpack into array of 32-bit signed integers, then integer decode into array of 32-bit floating-point numbers using the divisor parameter.

codec13 :: BinaryData -> [Float] Source #

Interpret array of bytes as array of 8-bit signed integers, then unpack into array of 32-bit signed integers, then integer decode into array of 32-bit floating-point numbers using the divisor parameter.

codec14 :: BinaryData -> [Int32] Source #

Interpret bytes as array of 16-bit signed integers, then unpack into array of 32-bit signed integers.

codec15 :: BinaryData -> [Int32] Source #

Interpret bytes as array of 8-bit signed integers, then unpack into array of 32-bit signed integers.

runLengthDec :: Integral a => [a] -> [a] Source #

deltaDec :: Num a => [a] -> [a] Source #

recIndexDec :: (Integral a, Bounded a, Eq a) => [a] -> [Int32] Source #

integerDec :: Integral a => a -> [a] -> [Float] Source #

m44Dec :: MonadFail m => [Float] -> m M44 Source #