In-memory representation
An in-memory representation is the structure and encoding used to store data or values in computer memory during execution.
Modern C
An object representation is the concrete representation of a value in an object's storage, such as memory or persistent storage.
- How it is used
- Distinguishes value-level binary representation from storage when inspecting objects or communicating across platforms.
- How deep it goes
- Explains byte-level inspection through unions and pointer conversions, including implementation-defined ordering and alignment constraints.
- Examples
- Uses an unsigned value of 0xAABBCCDD to illustrate byte inspection and little-endian ordering.
- What you can do after
- Evaluate/understand how an object’s bytes can be inspected without assuming a universal byte order.
Modern C, Third Edition
An object representation is a model describing the physical or storage-level encoding of a value in memory.
- How it is used
- Distinguishes abstract value encoding from byte-level storage when reasoning about pointers, memory access, and portability.
- How deep it goes
- Explains representation layers, byte inspection, unions, alignment, and effective types without detailing every access rule.
- Examples
- Uses an int32_t little-endian layout, byte-array views, and unions as concrete ways to examine storage.
- What you can do after
- Evaluate/understand how C separates values, byte storage, and platform-specific memory representations.
Read how Modern C, Third Edition explains in-memory representation →
What to know first
- union typeA union type is a type whose values can represent one of several specified alternative types or variants.
- atomic typeAn atomic type is a type whose supported accesses and operations are indivisible with respect to concurrent execution and provide defined synchronization semantics.
- memoryMemory is a storage capability or mechanism for retaining information or computational state for later access or use.
- arrayAn array is an ordered collection of elements organized in one or more dimensions and accessible by position or index.
Related concepts
- union typeused by · A union type is a type whose values can represent one of several specified alternative types or variants.
- binary representationcontrasts with · Binary representation expresses information or values using a base-two positional system with two symbols, conventionally zero and one.
- Apache Arrowimplemented by · Apache Arrow is an open, language-independent specification and software ecosystem for representing and processing columnar data in memory.
- byteshas part · Bytes are an ordered sequence of byte values, typically eight-bit units, used to represent binary data.
- consistency modelpart of · A consistency model is a formal specification of how operations on state may be ordered and what values those operations can observe.
Questions about in-memory representation
What is in-memory representation?
An in-memory representation is the structure and encoding used to store data or values in computer memory during execution.
Which Manning books explain in-memory representation?
Modern C and Modern C, Third Edition.
What should I know before learning in-memory representation?
Manning books that teach in-memory representation usually introduce union type, atomic type, memory and array first.
What is the difference between in-memory representation and binary representation?
An in-memory representation is the structure and encoding used to store data or values in computer memory during execution. Binary representation expresses information or values using a base-two positional system with two symbols, conventionally zero and one.
What is in-memory representation part of?
In-memory representation is part of consistency model. A consistency model is a formal specification of how operations on state may be ordered and what values those operations can observe.
What are the parts of in-memory representation?
In-memory representation includes bytes.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

