OpenCore  1.0.6
OpenCore Bootloader
Loading...
Searching...
No Matches
Cache.c File Reference
#include "NTFS.h"
#include "Helper.h"

Go to the source code of this file.

Macros

#define FNVHASH_PRIME   (0x100000001B3ULL)
 
#define FNVHASH_OFFSET   (0xCBF29CE484222325ULL)
 

Functions

STATIC UINT64 FnvHash (IN CONST CHAR16 *Str)
 
EFI_STATUS NtfsCfiInit (IN EFI_FS *Fs)
 
VOID NtfsCfiFree (IN EFI_FS *Fs)
 
VOID NtfsCfiPush (IN EFI_FS *Fs, IN CONST CHAR16 *Path, IN UINTN Size, IN INT64 DirIndex)
 
INTN NtfsCfiPop (IN EFI_FS *Fs, IN CONST CHAR16 *Path, IN UINTN Size, IN INT64 DirIndex, OUT VOID *Buffer)
 

Detailed Description

Copyright (c) 2025, Pavel Naberezhnev. All rights reserved. SPDX-License-Identifier: BSD-3-Clause

Definition in file Cache.c.

Macro Definition Documentation

◆ FNVHASH_OFFSET

#define FNVHASH_OFFSET   (0xCBF29CE484222325ULL)

Definition at line 10 of file Cache.c.

◆ FNVHASH_PRIME

#define FNVHASH_PRIME   (0x100000001B3ULL)

Definition at line 9 of file Cache.c.

Function Documentation

◆ FnvHash()

STATIC UINT64 FnvHash ( IN CONST CHAR16 * Str)

Definition at line 14 of file Cache.c.

◆ NtfsCfiFree()

VOID NtfsCfiFree ( IN EFI_FS * Fs)

Definition at line 59 of file Cache.c.

◆ NtfsCfiInit()

EFI_STATUS NtfsCfiInit ( IN EFI_FS * Fs)

Definition at line 39 of file Cache.c.

◆ NtfsCfiPop()

INTN NtfsCfiPop ( IN EFI_FS * Fs,
IN CONST CHAR16 * Path,
IN UINTN Size,
IN INT64 DirIndex,
OUT VOID * Buffer )

Definition at line 88 of file Cache.c.

◆ NtfsCfiPush()

VOID NtfsCfiPush ( IN EFI_FS * Fs,
IN CONST CHAR16 * Path,
IN UINTN Size,
IN INT64 DirIndex )

Definition at line 72 of file Cache.c.