content

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	// contains filtered or unexported fields
}

func CreateFromTLV

func CreateFromTLV(topLevelTLV codec.TLV) (*Content, error)

func CreateWithName

func CreateWithName(stubName *name.Name) *Content

func CreateWithNameAndPayload

func CreateWithNameAndPayload(name *name.Name, dataPayload payload.Payload) *Content

func CreateWithNameAndTypedPayload

func CreateWithNameAndTypedPayload(name *name.Name, payloadType uint16, dataPayload payload.Payload) *Content

func CreateWithPayload

func CreateWithPayload(dataPayload payload.Payload) *Content

func (*Content) AddContainer

func (c *Content) AddContainer(container codec.TLV)

func (Content) Children

func (c Content) Children() []codec.TLV

func (Content) Encode

func (c Content) Encode() []byte

func (*Content) GetContainer

func (c *Content) GetContainer(containerType uint16) (codec.TLV, error)

func (Content) GetPacketType

func (c Content) GetPacketType() uint16

func (Content) Length

func (c Content) Length() uint16

func (Content) Name

func (c Content) Name() *name.Name

func (Content) Payload

func (c Content) Payload() *payload.Payload

func (Content) PayloadType

func (c Content) PayloadType() uint16

func (Content) String

func (c Content) String() string

func (Content) Type

func (c Content) Type() uint16

func (Content) TypeString

func (c Content) TypeString() string

func (Content) Value

func (c Content) Value() []byte

Jump to

Keyboard shortcuts

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