Tagged articles

uintptr

2 articles · Page 1 of 1
Nullbody Notes
Nullbody Notes
Nov 26, 2020 · Fundamentals

Understanding Go Byte Order and Pointer Arithmetic in One Guide

This article demonstrates how to determine Go's endianness using unsafe.Pointer and uintptr, explains the memory layout of multi‑byte variables, and details the roles of *T, unsafe.Pointer, and uintptr for pointer arithmetic with concrete code examples.

Gobyte orderendianness
0 likes · 5 min read
Understanding Go Byte Order and Pointer Arithmetic in One Guide