Documentation ¶
Overview ¶
Package overlay is a generated protocol buffer package.
It is generated from these files:
pwr/overlay/overlay.proto
It has these top-level messages:
OverlayHeader OverlayOp
Index ¶
Constants ¶
View Source
const OverlayMagic = 0xFEF6F00
Variables ¶
View Source
var OverlayOp_Type_name = map[int32]string{
0: "SKIP",
1: "FRESH",
2040: "HEY_YOU_DID_IT",
}
View Source
var OverlayOp_Type_value = map[string]int32{
"SKIP": 0,
"FRESH": 1,
"HEY_YOU_DID_IT": 2040,
}
Functions ¶
This section is empty.
Types ¶
type OverlayHeader ¶
type OverlayHeader struct { }
func (*OverlayHeader) Descriptor ¶
func (*OverlayHeader) Descriptor() ([]byte, []int)
func (*OverlayHeader) ProtoMessage ¶
func (*OverlayHeader) ProtoMessage()
func (*OverlayHeader) Reset ¶
func (m *OverlayHeader) Reset()
func (*OverlayHeader) String ¶
func (m *OverlayHeader) String() string
type OverlayOp ¶
type OverlayOp struct { Type OverlayOp_Type `protobuf:"varint,1,opt,name=type,enum=io.itch.wharf.pwr.overlay.OverlayOp_Type" json:"type,omitempty"` Len int64 `protobuf:"varint,2,opt,name=len" json:"len,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
func (*OverlayOp) Descriptor ¶
func (*OverlayOp) GetType ¶
func (m *OverlayOp) GetType() OverlayOp_Type
func (*OverlayOp) ProtoMessage ¶
func (*OverlayOp) ProtoMessage()
type OverlayOp_Type ¶
type OverlayOp_Type int32
const ( OverlayOp_SKIP OverlayOp_Type = 0 OverlayOp_FRESH OverlayOp_Type = 1 OverlayOp_HEY_YOU_DID_IT OverlayOp_Type = 2040 )
func (OverlayOp_Type) EnumDescriptor ¶
func (OverlayOp_Type) EnumDescriptor() ([]byte, []int)
func (OverlayOp_Type) String ¶
func (x OverlayOp_Type) String() string
type OverlayPatchContext ¶
type OverlayPatchContext struct{}
func (*OverlayPatchContext) Patch ¶
func (ctx *OverlayPatchContext) Patch(r savior.Source, w io.WriteSeeker) error
type OverlayWriter ¶
type OverlayWriter interface { io.Writer Finalize() error Flush() error ReadOffset() int64 OverlayOffset() int64 }
func NewOverlayWriter ¶
func NewOverlayWriter(r io.Reader, readOffset int64, w io.Writer, overlayOffset int64) (OverlayWriter, error)
NewOverlayWriter returns a writer that reads from `r` and only encodes changed data to `w`. Closing it will not close the underlying writer!
Click to show internal directories.
Click to hide internal directories.