MCPcopy Create free account
hub / github.com/chain/txvm / DataItem

Struct DataItem

protocol/bc/bc.pb.go:145–150  ·  view source on GitHub ↗

DataItem is a txvm plain-data item: bytes, int, or tuple.

Source from the content-addressed store, hash-verified

143
144// DataItem is a txvm plain-data item: bytes, int, or tuple.
145type DataItem struct {
146 Type DataType `protobuf:"varint,1,opt,name=type,enum=bc.DataType" json:"type,omitempty"`
147 Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
148 Int int64 `protobuf:"varint,3,opt,name=int" json:"int,omitempty"`
149 Tuple []*DataItem `protobuf:"bytes,4,rep,name=tuple" json:"tuple,omitempty"`
150}
151
152func (m *DataItem) Reset() { *m = DataItem{} }
153func (m *DataItem) String() string { return proto.CompactTextString(m) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected