serialization

package
v1.7.0-dev-20191021 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 2 Imported by: 8 modules, 14 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package serialization contains constants and utility methods used to serialize .gfxtrace files.

Index

Constants

View Source
const (
	StateStart      = ProtoFieldID(1)
	CmdThread       = ProtoFieldID(1)
	CmdResult       = ProtoFieldID(1)
	CmdFieldStart   = ProtoFieldID(8)
	ClassFieldStart = ProtoFieldID(1)
	MapRef          = ProtoFieldID(1)
	MapVal          = ProtoFieldID(2)
	MapKey          = ProtoFieldID(3)
	RefRef          = ProtoFieldID(1)
	RefVal          = ProtoFieldID(2)
	SliceRoot       = ProtoFieldID(1)
	SliceBase       = ProtoFieldID(2)
	SliceSize       = ProtoFieldID(3)
	SliceCount      = ProtoFieldID(4)
	SlicePool       = ProtoFieldID(5)
)

These are the proto field identifiers for gapil proto messages.

Variables

This section is empty.

Functions

func IsEncodable

func IsEncodable(n semantic.Node) bool

IsEncodable returns true if the node is encodable.

func ProtoTypeName

func ProtoTypeName(ty semantic.Type) string

ProtoTypeName returns the proto type name for the given type.

Types

type ProtoFieldID

type ProtoFieldID int

ProtoFieldID is a field identifier

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL