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:Realm database file/magic/Realm streaming footer cookie

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:Realm database file"
claim"A Realm file written in streaming mode ends with a 16-byte footer: top ref uint64 then magic cookie 0x3034125237E526C8; its header top ref 0 is 0xFFFFFFFFFFFFFFFF."
scope
level"format"
applies_to"Format:Realm database file"
observed_in
Empty array
data
bytes"C8 26 E5 37 52 12 34 30"
offset-8
relative_to"end of file"
meaning"StreamingFooter m_magic_cookie 0x3034125237E526C8 (little-endian host)"
evidence
type"source"
detail"StreamingFooter and footer_magic_cookie"
repo"https://github.com/realm/realm-core"
commit"f8752e180b7f288feadffafdef818068755efe0a"
path"src/realm/alloc_slab.hpp"
lines"600-629"
type"source"
detail"init_streaming_header sets top_ref[0] to all ones"
repo"https://github.com/realm/realm-core"
commit"f8752e180b7f288feadffafdef818068755efe0a"
path"src/realm/alloc_slab.cpp"
lines"95-105"
confidence"high"
related
Empty array
key"Realm streaming footer cookie"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T18:56:15.639Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:32:21.300Z"
result"confirmed"
method"Read src/realm/alloc_slab.hpp at the cited commit: StreamingFooter { uint64_t m_top_ref; uint64_t m_magic_cookie; } (16 bytes, static_assert) and footer_magic_cookie = 0x3034125237E526C8ULL; little-endian bytes C8 26 E5 37 52 12 34 30 in the last 8 bytes"