Liking cljdoc? Tell your friends :D

roughtime-protocol.packet


decode-packetclj

(decode-packet msg-or-pkt & {:keys [min-size-bytes] :or {min-size-bytes 1024}})

dispatch to decode-packet- or to tlv/decode-rt-message for compatibility with Google version of the protocol.

dispatch to `decode-packet-` or to `tlv/decode-rt-message` for compatibility
with Google version of the protocol.
sourceraw docstring

decode-packet-clj

(decode-packet- packet & [{:keys [min-size-bytes] :or {min-size-bytes 1024}}])

Decode a Roughtime packet and perform basic framing validations.

Decode a Roughtime packet and perform basic framing validations.
sourceraw docstring

encode-packetclj

(encode-packet msg-bytes)

Wrap a TLV-encoded Roughtime message into a packet: [magic][msg_len][payload].

Wrap a TLV-encoded Roughtime message into a packet: [magic][msg_len][payload].
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close