Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Asn.Ber
Contents
Synopsis
- data Value = Value {}
- data Contents
- = Boolean !Bool
- | Integer !Int64
- | OctetString !Bytes
- | BitString !Word8 !Bytes
- | Null
- | ObjectIdentifier !Oid
- | Utf8String !ShortText
- | PrintableString !ShortText
- | UtcTime !Int64
- | Constructed !(SmallArray Value)
- | Unresolved !Bytes
- data Class
- decode :: Bytes -> Either String Value
- decodeInteger :: Bytes -> Either String Int64
- decodeOctetString :: Bytes -> Either String Bytes
- decodeNull :: Bytes -> Either String ()
- decodeObjectId :: Bytes -> Either String Oid
- decodeUtf8String :: Bytes -> Either String ShortText
- decodePrintableString :: Bytes -> Either String ShortText
- pattern Set :: Word32
- pattern Sequence :: Word32
Documentation
Constructors
Boolean !Bool | Tag number: |
Integer !Int64 | Tag number: |
OctetString !Bytes | Tag number: |
BitString !Word8 !Bytes | Tag number: |
Null | Tag number: |
ObjectIdentifier !Oid | Tag number: |
Utf8String !ShortText | Tag number: |
PrintableString !ShortText | Tag number: |
UtcTime !Int64 | Tag number:
|
Constructed !(SmallArray Value) | Constructed value contents in concatenation order.
The class and tag are held in |
Unresolved !Bytes | Values that require information about interpreting application, context-specific, or private tag. |
Constructors
Universal | |
Application | |
ContextSpecific | |
Private |