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 | |
|---|
|
|---|
| data | | name | "GoSlice" |
|---|
| size | "0x18" |
|---|
| alignment | 8 |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "void *" |
|---|
| name | "array" |
|---|
|
| offset | "0x8" |
|---|
| size | 8 |
|---|
| type | "int64_t" |
|---|
| name | "len" |
|---|
|
| offset | "0x10" |
|---|
| size | 8 |
|---|
| 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 | |
|---|
| key | "slice (64-bit)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T09:13:43.006Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:40:32.642Z" |
|---|
| summary | "Set byte order native: Go runtime in-memory value." |
|---|
| changed | |
|---|
|
|
|---|