serialization

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 2 Imported by: 14

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