Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- codecCommon :: Binary a => (ByteString -> a) -> Int -> ByteString -> [a]
- data BinaryData = BD {
- binaryCodec :: !Int32
- binaryLength :: !Int32
- binaryParam :: !Int32
- binaryData :: !ByteString
- parseBinary :: ByteString -> BinaryData
- codec1 :: BinaryData -> [Float]
- codec2 :: BinaryData -> [Int8]
- codec3 :: BinaryData -> [Int16]
- codec4 :: BinaryData -> [Int32]
- codec5 :: BinaryData -> [Text]
- codec6 :: BinaryData -> [Char]
- codec7 :: BinaryData -> [Int32]
- codec8 :: BinaryData -> [Int32]
- codec9 :: BinaryData -> [Float]
- codec10 :: BinaryData -> [Float]
- codec11 :: BinaryData -> [Float]
- codec12 :: BinaryData -> [Float]
- codec13 :: BinaryData -> [Float]
- codec14 :: BinaryData -> [Int32]
- codec15 :: BinaryData -> [Int32]
- runLengthDec :: Integral a => [a] -> [a]
- deltaDec :: Num a => [a] -> [a]
- recIndexDec :: (Integral a, Bounded a, Eq a) => [a] -> [Int32]
- integerDec :: Integral a => a -> [a] -> [Float]
- ssDec :: Int8 -> SecondaryStructure
- ucDec :: MonadFail m => [Float] -> m UnitCell
- m44Dec :: MonadFail m => [Float] -> m M44
Documentation
codecCommon :: Binary a => (ByteString -> a) -> Int -> ByteString -> [a] Source #
data BinaryData Source #
BD | |
|
Instances
Show BinaryData Source # | |
Defined in Bio.MMTF.Decode.Codec showsPrec :: Int -> BinaryData -> ShowS # show :: BinaryData -> String # showList :: [BinaryData] -> ShowS # |
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 #
integerDec :: Integral a => a -> [a] -> [Float] Source #
ssDec :: Int8 -> SecondaryStructure Source #