Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Go runtime/struct/slice (64-bit)

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Library:Go runtime"
claim"A Go slice value is three words: pointer to the backing array, length, capacity. In the register ABI a slice argument takes three integer registers (for example RAX, RBX, RCX)."
scope
level"library"
applies_to"Library:Go runtime"
observed_in
Empty array
data
name"GoSlice"
size"0x18"
alignment8
fields
offset"0x0"
size8
type"void *"
name"array"
offset"0x8"
size8
type"int64_t"
name"len"
offset"0x10"
size8
type"int64_t"
name"cap"
endianness"native"
evidence
type"source"
detail"type slice struct { array unsafe.Pointer; len int; cap int }"
repo"https://github.com/golang/go"
commit"dfc6f7db9bd75868ffb5cbc9501a2f4899122d2f"
path"src/runtime/slice.go"
lines"16-20"
type"runtime_test"
detail"moduledata's funcnametab, cutab, filetab, pctab, pclntable and ftab fields are slices; in Mailpit v1.22.3 the word at moduledata+0x8 is the funcnametab address and the next two words its length and capacity, which gobin.py relies on."
confidence"high"
related
Empty array
key"slice (64-bit)"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T09:13:43.006Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T12:40:32.642Z"
summary"Set byte order native: Go runtime in-memory value."
changed
"data"