From ab6a9d4884147c2cb33ae5c51f02c37d507af433 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Mon, 29 Apr 2024 14:09:26 +0200 Subject: [PATCH] update magic --- src/file.rs | 4 ++-- src/page.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/file.rs b/src/file.rs index b989de8..761d655 100644 --- a/src/file.rs +++ b/src/file.rs @@ -29,7 +29,7 @@ pub struct MetaHeader { } unsafe impl page::Header for MetaHeader { - const MAGIC: u32 = 0x1d81bcdc; + const MAGIC: u32 = 0x1d81bcde; } #[derive(Clone, Copy, PartialEq, Eq, Debug)] @@ -49,7 +49,7 @@ pub struct DataHeader { } unsafe impl page::Header for DataHeader { - const MAGIC: u32 = 0x7fcbf35c; + const MAGIC: u32 = 0x7fcbf35d; } #[derive(Clone, Copy, PartialEq, Eq, Debug)] diff --git a/src/page.rs b/src/page.rs index df07770..5cd0fa7 100644 --- a/src/page.rs +++ b/src/page.rs @@ -6,7 +6,7 @@ use crate::errors::Error; use crate::flash::Flash; use crate::types::PageID; -const CHUNK_MAGIC: u16 = 0x59C4; +const CHUNK_MAGIC: u16 = 0x59C5; #[derive(Clone, Copy, PartialEq, Eq, Debug)] #[repr(C)]