flatland.protobuf.core
Documentation forthcoming
get-raw
(get-raw p key)
Get value at key ignoring extension fields.
protobuf
(protobuf type)
(protobuf type m)
(protobuf type k v & kvs)
Construct a protobuf of the given type.
protobuf-dump
(protobuf-dump p)
(protobuf-dump type m)
Return the byte representation of the given flatland.protobuf.
protobuf-load
(protobuf-load type data)
(protobuf-load type data offset length)
Load a protobuf of the given type from an array of bytes.
protobuf-load-stream
(protobuf-load-stream type stream)
Load a protobuf of the given type from an InputStream.
protobuf-schema
(protobuf-schema & args)
Return the schema for the given protodef.
protobuf-seq
(protobuf-seq type in)
Lazily read a sequence of length-delimited protobufs of the specified type from the given input stream.
protobuf-write
(protobuf-write out & ps)
Write the given protobufs to the given output stream, prefixing each with its length to delimit them.
protobuf?
(protobuf? obj)
Is the given object a PersistentProtocolBufferMap?
protodef
(protodef def)
(protodef def opts)
Create a protodef from a string or protobuf class.
protodef?
(protodef? obj)
Is the given object a PersistentProtocolBufferMap$Def?