Closed tendant closed 10 years ago
@ifesdjeen can you please comment on this?
Maybe the wording is not precise enough: you can read out parts of payload without deserializing an entire one, like here:
(let [s (spec :int-field (int32-type)
:string-field (string-type 10))
buf (compose-buffer s)]
(set-field buf :int-field 101)
;; Here we deserialize just an int field, without reading out the rest
(get-field buf :int-field)
(set-field buf :string-field "stringie")
;; Here we deserialize just a string field, without reading out the rest
(get-field buf :string-field)
)
The partial deserialization is mentioned in README. Is there any document or reference for this feature? Thanks.