protobuf.core
Documentation forthcoming
->bytes
(->bytes p)
(->bytes map-def m)
Return the byte representation of the given protobuf.
combine
A convenience alias for util/combine
create
(create map-def)
(create map-def m)
(create map-def k v & kvs)
Construct a protobuf of the given map-def.
get-raw
(get-raw p key)
Get value at key ignoring extension fields.
map?
(map? obj)
Is the given object a PersistentProtocolBufferMap?
mapdef
(mapdef map-def)
(mapdef map-def opts)
Create a protocol buffer map definition from a string or protobuf class.
mapdef->schema
(mapdef->schema & args)
Return the schema for the given mapdef.
mapdef?
(mapdef? obj)
Is the given object a PersistentProtocolBufferMap$Def?
parse
multimethod
Load a protobuf of the given map-def from a data source.
Supported data sources are either an array of bytes or an input stream.
protobuf
deprecated in 3.5.1-v1.0
Backwards-compatible alias for mapdef
protobuf-dump
deprecated in 3.5.1-v1.0
Backwards-compatible alias for ->bytes
protobuf-load
deprecated in 3.5.1-v1.0
Backwards-compatible alias for parse
protobuf-load-stream
deprecated in 3.5.1-v1.0
Backwards-compatible alias for parse
protobuf-schema
deprecated in 3.5.1-v1.0
Backwards-compatible alias for mapdef
protobuf-seq
deprecated in 3.5.1-v1.0
Backwards-compatible alias for read
protobuf-write
deprecated in 3.5.1-v1.0
Backwards-compatible alias for write
protobuf?
deprecated in 3.5.1-v1.0
Backwards-compatible alias for protobuf.core/map?
protodef
deprecated in 3.5.1-v1.0
Backwards-compatible alias for mapdef
protodef?
deprecated in 3.5.1-v1.0
Backwards-compatible alias for mapdef?
read
(read map-def in)
Lazily read a sequence of length-delimited protobufs of the specified map-def from the given input stream.
write
(write out & ps)
Write the given protobufs to the given output stream, prefixing each with its length to delimit them.