Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Erlang Binary Term Format Encoding/Decoding
- data OtpErlangTerm
- = OtpErlangInteger Int
- | OtpErlangIntegerBig Integer
- | OtpErlangFloat Double
- | OtpErlangAtom ByteString
- | OtpErlangAtomUTF8 ByteString
- | OtpErlangAtomCacheRef Int
- | OtpErlangAtomBool Bool
- | OtpErlangString ByteString
- | OtpErlangBinary ByteString
- | OtpErlangBinaryBits (ByteString, Int)
- | OtpErlangList [OtpErlangTerm]
- | OtpErlangListImproper [OtpErlangTerm]
- | OtpErlangTuple [OtpErlangTerm]
- | OtpErlangMap (Map OtpErlangTerm OtpErlangTerm)
- | OtpErlangPid Pid
- | OtpErlangPort Port
- | OtpErlangReference Reference
- | OtpErlangFunction Function
- data Error
- type Result a = Either Error a
- binaryToTerm :: LazyByteString -> Result OtpErlangTerm
- termToBinary :: OtpErlangTerm -> Int -> Result LazyByteString
Documentation
data OtpErlangTerm Source #
OtpErlangInteger Int | |
OtpErlangIntegerBig Integer | |
OtpErlangFloat Double | |
OtpErlangAtom ByteString | |
OtpErlangAtomUTF8 ByteString | |
OtpErlangAtomCacheRef Int | |
OtpErlangAtomBool Bool | |
OtpErlangString ByteString | |
OtpErlangBinary ByteString | |
OtpErlangBinaryBits (ByteString, Int) | |
OtpErlangList [OtpErlangTerm] | |
OtpErlangListImproper [OtpErlangTerm] | |
OtpErlangTuple [OtpErlangTerm] | |
OtpErlangMap (Map OtpErlangTerm OtpErlangTerm) | |
OtpErlangPid Pid | |
OtpErlangPort Port | |
OtpErlangReference Reference | |
OtpErlangFunction Function |
binaryToTerm :: LazyByteString -> Result OtpErlangTerm Source #
Decode Erlang terms within binary data into Haskell types
termToBinary :: OtpErlangTerm -> Int -> Result LazyByteString Source #
Encode Haskell types into Erlang terms in binary data