Versions in this module Expand all Collapse all v0 v0.5.1 Jan 24, 2023 Changes in this version + type Code interface + Marker func() SyncMarker + Value func() int + type CodeObj int + const ObjAlias + const ObjConst + const ObjFunc + const ObjStub + const ObjType + const ObjVar + func (c CodeObj) Marker() SyncMarker + func (c CodeObj) Value() int + type CodeType int + const TypeArray + const TypeBasic + const TypeChan + const TypeInterface + const TypeMap + const TypeNamed + const TypePointer + const TypeSignature + const TypeSlice + const TypeStruct + const TypeTypeParam + const TypeUnion + func (c CodeType) Marker() SyncMarker + func (c CodeType) Value() int + type CodeVal int + const ValBigFloat + const ValBigInt + const ValBigRat + const ValBool + const ValInt64 + const ValString + func (c CodeVal) Marker() SyncMarker + func (c CodeVal) Value() int + type Decoder struct + Data strings.Reader + Idx Index + Relocs []RelocEnt + func (r *Decoder) Bool() bool + func (r *Decoder) Code(mark SyncMarker) int + func (r *Decoder) Int() int + func (r *Decoder) Int64() int64 + func (r *Decoder) Len() int + func (r *Decoder) Reloc(k RelocKind) Index + func (r *Decoder) String() string + func (r *Decoder) Strings() []string + func (r *Decoder) Sync(mWant SyncMarker) + func (r *Decoder) Uint() uint + func (r *Decoder) Uint64() uint64 + func (r *Decoder) Value() constant.Value + type Encoder struct + Data bytes.Buffer + Idx Index + RelocMap map[RelocEnt]uint32 + Relocs []RelocEnt + func (w *Encoder) Bool(b bool) bool + func (w *Encoder) Code(c Code) + func (w *Encoder) Flush() Index + func (w *Encoder) Int(x int) + func (w *Encoder) Int64(x int64) + func (w *Encoder) Len(x int) + func (w *Encoder) Reloc(r RelocKind, idx Index) + func (w *Encoder) String(s string) + func (w *Encoder) Strings(ss []string) + func (w *Encoder) Sync(m SyncMarker) + func (w *Encoder) Uint(x uint) + func (w *Encoder) Uint64(x uint64) + func (w *Encoder) Value(val constant.Value) + type Index int32 + const PrivateRootIdx + const PublicRootIdx + type PkgDecoder struct + func NewPkgDecoder(pkgPath, input string) PkgDecoder + func (pr *PkgDecoder) AbsIdx(k RelocKind, idx Index) int + func (pr *PkgDecoder) DataIdx(k RelocKind, idx Index) string + func (pr *PkgDecoder) Fingerprint() [8]byte + func (pr *PkgDecoder) NewDecoder(k RelocKind, idx Index, marker SyncMarker) Decoder + func (pr *PkgDecoder) NewDecoderRaw(k RelocKind, idx Index) Decoder + func (pr *PkgDecoder) NumElems(k RelocKind) int + func (pr *PkgDecoder) PeekObj(idx Index) (string, string, CodeObj) + func (pr *PkgDecoder) PeekPkgPath(idx Index) string + func (pr *PkgDecoder) PkgPath() string + func (pr *PkgDecoder) RetireDecoder(d *Decoder) + func (pr *PkgDecoder) StringIdx(idx Index) string + func (pr *PkgDecoder) SyncMarkers() bool + func (pr *PkgDecoder) TempDecoder(k RelocKind, idx Index, marker SyncMarker) Decoder + func (pr *PkgDecoder) TempDecoderRaw(k RelocKind, idx Index) Decoder + func (pr *PkgDecoder) TotalElems() int + type PkgEncoder struct + func NewPkgEncoder(syncFrames int) PkgEncoder + func (pw *PkgEncoder) DumpTo(out0 io.Writer) (fingerprint [8]byte) + func (pw *PkgEncoder) NewEncoder(k RelocKind, marker SyncMarker) Encoder + func (pw *PkgEncoder) NewEncoderRaw(k RelocKind) Encoder + func (pw *PkgEncoder) StringIdx(s string) Index + func (pw *PkgEncoder) SyncMarkers() bool + type RelocEnt struct + Idx Index + Kind RelocKind + type RelocKind int32 + const RelocBody + const RelocMeta + const RelocName + const RelocObj + const RelocObjDict + const RelocObjExt + const RelocPkg + const RelocPosBase + const RelocString + const RelocType + type SyncMarker int + const SyncAddLocal + const SyncAssign + const SyncBlockStmt + const SyncBool + const SyncCaseClause + const SyncCloseAnotherScope + const SyncCloseScope + const SyncCodeObj + const SyncCommClause + const SyncCompLit + const SyncDecl + const SyncDeclName + const SyncDeclNames + const SyncDecls + const SyncEOF + const SyncExpr + const SyncExprList + const SyncExprType + const SyncExprs + const SyncForStmt + const SyncFuncBody + const SyncFuncExt + const SyncFuncLit + const SyncIfStmt + const SyncInt64 + const SyncLabel + const SyncLabeledStmt + const SyncLinkname + const SyncLocalIdent + const SyncMethod + const SyncObject + const SyncObject1 + const SyncOp + const SyncOpenScope + const SyncOptLabel + const SyncParam + const SyncParams + const SyncPkg + const SyncPkgDef + const SyncPos + const SyncPosBase + const SyncPragma + const SyncPrivate + const SyncPublic + const SyncRangeStmt + const SyncReloc + const SyncRelocs + const SyncSelectStmt + const SyncSelector + const SyncSignature + const SyncStmt1 + const SyncStmts + const SyncStmtsEnd + const SyncString + const SyncSwitchStmt + const SyncSym + const SyncType + const SyncTypeExt + const SyncTypeIdx + const SyncTypeParamNames + const SyncUint64 + const SyncUseObjLocal + const SyncUseReloc + const SyncVal + const SyncValue + const SyncVarExt + func (i SyncMarker) String() string