Back to godoc.org
go.opencensus.io / internal / tagencoding

Package tagencoding

v0.22.4
Latest Go to latest
Published: Jun 17, 2020 | License: Apache-2.0 | Module: go.opencensus.io

Overview

Package tagencoding contains the tag encoding used interally by the stats collector.

Index

Package Files

type Values

type Values struct {
	Buffer     []byte
	WriteIndex int
	ReadIndex  int
}

Values represent the encoded buffer for the values.

func (*Values) Bytes

func (vb *Values) Bytes() []byte

Bytes returns a reference to already written bytes in the Buffer.

func (*Values) ReadValue

func (vb *Values) ReadValue() []byte

ReadValue is the helper method to decode Values to a map[Key][]byte.

func (*Values) WriteValue

func (vb *Values) WriteValue(v []byte)

WriteValue is the helper method to encode Values from map[Key][]byte.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier