Skip to content

ProtoCompatibleSlices to ProtoCompatibleArrays #10

@3052

Description

@3052

You can encode slices with the standard protobuf encoding by using a Plenc object and setting the ProtoCompatibleSlices option. With this option set plenc will use the standard protobuf encoding for slices.

plenc/plenc.go

Lines 22 to 26 in 57766d2

// ProtoCompatibleArrays controls how plenc handles slices and arrays of
// data. When set to true Plenc writes arrays that are compatible with
// protobuf. If not true it uses a format that allows arrays to be read more
// efficiently. Set it before calling RegisterDefaultCodecs.
ProtoCompatibleArrays bool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions