tree: 12dde696e867d4971d6ac92aa18d938cdf89f496 [path history] [tgz]
  1. doc.go
  2. flat.go
  3. flat_test.go
  4. README.md
binary/flat/README.md

flat


import "android.googlesource.com/platform/tools/gpu/binary/flat"

Objects are encoded as:

type [20]byte // A unique identifier for the type of the object
...data...    // The object's data (length dependent on the object type)

If the object is nil, then the object is encoded as a null type.

Usage

func Decoder

func Decoder(reader binary.Reader) binary.Decoder

Decoder creates a binary.Decoder that reads from the provided binary.Reader.

func Encoder

func Encoder(writer binary.Writer) binary.Encoder

Encoder creates a binary.Encoder that writes to the supplied binary.Writer.