aboutsummaryrefslogtreecommitdiff
path: root/binary/decoder.go
AgeCommit message (Collapse)Author
2015-07-02Replace the binary/pod package with binary/any.Ben Clayton
There were concerns with performance hit encoding and decoding took with the introduction of the POD package: https://android-review.googlesource.com/#/c/157320/ To address this, the pod package has been replaced with any, which as well as supporting POD types, can box binary.Object types. The wrapper object can be encoded using Variant for POD-efficent encodings while still encoding Objects as references (as the wrapper uses Object() internally). Added new schema type to support anys. Change-Id: I789f6ef61a5a1f2ee4e26b3fde3b95cdbdb611b5
2015-06-30Add POD support to Encoder and Decoder methods.Ben Clayton
This solves issues where we need to support POD types as well as Objects in RPC fields. Change-Id: I787788a14c07bc19c0afc2bc479a63541b349c22
2015-06-25Change schema struct decoding to use the same id namespace as it's decoderIan Cottrell
Change-Id: Ie4f4b21cdcd25411a6cea0485fc2616498542717
2015-04-02Move to binary.Class based systemIan Cottrell
Change-Id: I75e529c81062d1dcb43ac8a6de70e2749bae3683
2015-03-31SkipObject and SkipVariant return the type id of the object they skipped.Ian Cottrell
Change-Id: I553d24a24a8ef1b573bcc50cd395f4c1a280b6d5
2015-03-31Enhance Encoder/Decoder to support Variant ID and Value types and SkipIan Cottrell
Change-Id: Id397e70abb9d7da1f8532495d1918ac5071e1433
2015-03-20Split the variable size integer writer from the object hierarchy encoderIan Cottrell
Change-Id: I587cc45e08d2b49a88b93e1816d0a22def405356
2015-03-10New variable length integer encoded formatIan Cottrell
Change-Id: Icfd96894e6bec4a71ec0551689c91764b8bc156b
2015-03-05Split protocol coders from binary codersIan Cottrell
This is so our transport and storage encodings don't have to match the in memory layout rules of a c program. Also add endian support. Change-Id: Ief724cc4e0fcab58205361d2f8e70ac9df5c362d
2015-02-17TypeID -> ID and make it more genericIan Cottrell
Also remove TypeID and Data methods from encoder and decoder, and declare them as codeable objects instead. Change-Id: I0ba4ebee8dad776097ac3c840fce7c25dbbd01a8
2015-01-15Add methods for getting TypeId and getting object from TypeIdAnton Carver
Change-Id: I15a8267787ba4aa91a5a9aaf42a539068ed59275
2015-01-05Remove namespace concept, and switch to sha1 compatible object type identifiers.Ian Cottrell
Add io.Reader and io.Writer compatability Change-Id: I7461b731046ddb01731734fc4cf9165d4d108618
2014-12-10Initial drop of the binary package.Ben Clayton
This package provides a number of utilities for encoding and decoding primitive types to and from byte arrays. This is used for storage and communication between client, server and the replay system. Change-Id: I72249ab4a3c1722d3d5ad0b44529ce8f45e53da8