OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcAppleDiskImageLibInternal.h File Reference

Go to the source code of this file.

Macros

#define BASE_256B   0x0100U
 
#define SIZE_512B   0x0200U
 
#define DMG_SECTOR_START_ABS(b, c)
 
#define DMG_PLIST_RESOURCE_FORK_KEY   "resource-fork"
 
#define DMG_PLIST_BLOCK_LIST_KEY   "blkx"
 
#define DMG_PLIST_ATTRIBUTES   "Attributes"
 
#define DMG_PLIST_CFNAME   "CFName"
 
#define DMG_PLIST_DATA   "Data"
 
#define DMG_PLIST_ID   "ID"
 
#define DMG_PLIST_NAME   "Name"
 

Functions

BOOLEAN InternalParsePlist (IN CHAR8 *Plist, IN UINT32 PlistSize, IN UINTN SectorCount, IN UINTN DataForkOffset, IN UINTN DataForkSize, OUT UINT32 *BlockCount, OUT APPLE_DISK_IMAGE_BLOCK_DATA ***Blocks)
 
BOOLEAN InternalGetBlockChunk (IN OC_APPLE_DISK_IMAGE_CONTEXT *Context, IN UINTN Lba, OUT APPLE_DISK_IMAGE_BLOCK_DATA **Data, OUT APPLE_DISK_IMAGE_CHUNK **Chunk)
 

Detailed Description

Copyright (C) 2019, Goldfish64. All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file OcAppleDiskImageLibInternal.h.

Macro Definition Documentation

◆ BASE_256B

#define BASE_256B   0x0100U

Definition at line 16 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_ATTRIBUTES

#define DMG_PLIST_ATTRIBUTES   "Attributes"

Definition at line 23 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_BLOCK_LIST_KEY

#define DMG_PLIST_BLOCK_LIST_KEY   "blkx"

Definition at line 22 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_CFNAME

#define DMG_PLIST_CFNAME   "CFName"

Definition at line 24 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_DATA

#define DMG_PLIST_DATA   "Data"

Definition at line 25 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_ID

#define DMG_PLIST_ID   "ID"

Definition at line 26 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_NAME

#define DMG_PLIST_NAME   "Name"

Definition at line 27 of file OcAppleDiskImageLibInternal.h.

◆ DMG_PLIST_RESOURCE_FORK_KEY

#define DMG_PLIST_RESOURCE_FORK_KEY   "resource-fork"

Definition at line 21 of file OcAppleDiskImageLibInternal.h.

◆ DMG_SECTOR_START_ABS

#define DMG_SECTOR_START_ABS ( b,
c )
Value:
(((b)->SectorNumber) + ((c)->SectorNumber))

Definition at line 19 of file OcAppleDiskImageLibInternal.h.

◆ SIZE_512B

#define SIZE_512B   0x0200U

Definition at line 17 of file OcAppleDiskImageLibInternal.h.

Function Documentation

◆ InternalGetBlockChunk()

BOOLEAN InternalGetBlockChunk ( IN OC_APPLE_DISK_IMAGE_CONTEXT * Context,
IN UINTN Lba,
OUT APPLE_DISK_IMAGE_BLOCK_DATA ** Data,
OUT APPLE_DISK_IMAGE_CHUNK ** Chunk )

Definition at line 326 of file OcAppleDiskImageLibInternal.c.

◆ InternalParsePlist()

BOOLEAN InternalParsePlist ( IN CHAR8 * Plist,
IN UINT32 PlistSize,
IN UINTN SectorCount,
IN UINTN DataForkOffset,
IN UINTN DataForkSize,
OUT UINT32 * BlockCount,
OUT APPLE_DISK_IMAGE_BLOCK_DATA *** Blocks )

< Result must be FALSE on error, it's checked at DONE_ERROR

Definition at line 165 of file OcAppleDiskImageLibInternal.c.