Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
encode :: UUID -> Encoding Source #
Encoded according to draft-bormann-cbor-tags-oid-06.
19 bytes consisting of 0xd8
, 0x25
, 0x50
, and the 16 raw bytes of the
UUID in network order. For example, the UUID 8b0d1a20-dcc5-11d9-bda9-0002a5d5c51b
is
encoded as "\xd8\x25\x50\x8b\x0d\x1a\x20\xdc\xc5\x11\xd9\xbd\xa9\x00\x02\xa5\xd5\xc5\x1b"
.
decode :: Decoder s UUID Source #
Decode according to draft-bormann-cbor-tags-oid-06.
19 bytes consisting of 0xd8
, 0x25
, 0x50
, and the 16 raw bytes of the
UUID in network order. For example, the UUID 8b0d1a20-dcc5-11d9-bda9-0002a5d5c51b
is expected to be
encoded as "\xd8\x25\x50\x8b\x0d\x1a\x20\xdc\xc5\x11\xd9\xbd\xa9\x00\x02\xa5\xd5\xc5\x1b"
.