liveBook · Manning

In-memory representation

An in-memory representation is the structure and encoding used to store data or values in computer memory during execution.

How 2 Manning books explain it

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.

Read how Modern C explains in-memory representation →

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

Related concepts

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.