packstream-bolt-0.1.0.0: PackStream binary serialization format
Safe HaskellNone
LanguageGHC2021

Data.PackStream.Get

Description

Internal module. Not part of the public API.

Synopsis

Primitive decoders

getNull :: Get () Source #

Decode a PackStream null value.

getBoolean :: Get Bool Source #

Decode a PackStream boolean value.

getFloat :: Get Double Source #

Decode a PackStream 64-bit float.

Integer decoders

getInt :: Get Int Source #

Deserialize an integer into an Int

This operation will fail if the encoded integer doesn't fit into the value range of the Int type.

getInt64 :: Get Int64 Source #

Deserialize an integer into an Int64

This operation will fail if the encoded integer doesn't fit into the value range of the Int64 type.

Container decoders

getString :: Get Text Source #

Decode a PackStream UTF-8 string.

getBytes :: Get ByteString Source #

Decode a PackStream byte array.

getList :: Get a -> Get (Vector a) Source #

Decode a PackStream list using the given element decoder.

getDictionary :: Hashable a => Get a -> Get b -> Get (HashMap a b) Source #

Decode a PackStream dictionary using the given key and value decoders.