Diff
checker
文本
文本
圖像
文檔
Excel
文件夾
Legal
Enterprise
桌面版
定價
登入
下載 Diffchecker 桌面版
比較文本
尋找兩個文字檔案之間的差異
工具
歷史
即時編輯器
摺疊未變更行
關閉換行
檢視
拆分
統一
比對精度
智能
單詞
字符
語法突出顯示
選擇語法
忽略
文字轉換
前往第一個差異
編輯輸入
Diffchecker Desktop
執行Diffchecker最安全的方式。取得Diffchecker桌面應用程式:您的差異永遠不會離開您的電腦!
取得桌面版
Untitled diff
建立於
11 年前
差異永不過期
清除
匯出
分享
解釋
23 刪除
行
總計
刪除
字符
總計
刪除
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
55 行
全部複製
39 新增
行
總計
新增
字符
總計
新增
要繼續使用此功能,請升級到
Diff
checker
Pro
查看價格
75 行
全部複製
複製
已複製
複製
已複製
#ifndef _PSP2_KERNEL_
MEMORYMGR
_H_
/**
#define _PSP2_KERNEL_
MEMORYMGR
_H_
* \file
* \brief Header file which defines memory related variables and functions
*
* Copyright (C) 2015 PSP2SDK Project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef _PSP2_KERNEL_
SYSMEM
_H_
#define _PSP2_KERNEL_
SYSMEM
_H_
#include <psp2/types.h>
#include <psp2/types.h>
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
複製
已複製
複製
已複製
typedef int SceKernelMemBlockType;
enum {
enum {
複製
已複製
複製
已複製
SCE_KERNEL_MEMBLOCK_TYPE_USER_RW
= 0x0c20d060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_RW
= 0x0c20d060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE
= 0x0c208060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE
= 0x0c208060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_RW
= 0x0c80d060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_RW
= 0x0c80d060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_RW
= 0x0d808060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_RW
= 0x0d808060,
SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW
= 0x09408060
SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW
= 0x09408060
};
};
複製
已複製
複製
已複製
/***
/***
* Allocates a new memoy block
* Allocates a new memoy block
*
*
* @param[in] name - Name for the memory block
* @param[in] name - Name for the memory block
* @param[in] type - Type of the memory to allocate
* @param[in] type - Type of the memory to allocate
* @param[in] size - Size of the memory to allocate
* @param[in] size - Size of the memory to allocate
* @param[in] optp - Memory block options?
* @param[in] optp - Memory block options?
*
*
* @return SceUID of the memory block on success, < 0 on error.
* @return SceUID of the memory block on success, < 0 on error.
複製
已複製
複製
已複製
*/
*/
SceUID sceKernelAllocMemBlock(const char *name,
int
type, int size, void *optp);
SceUID sceKernelAllocMemBlock(const char *name,
SceKernelMemBlockType
type, int size, void *optp);
SceUID sceKernelAllocMemBlockForVM(const char *, SceSize);
/***
/***
* Frees new memoy block
* Frees new memoy block
*
*
* @param[in] uid - SceUID of the memory block to free
* @param[in] uid - SceUID of the memory block to free
*
*
* @return 0 on success, < 0 on error.
* @return 0 on success, < 0 on error.
複製
已複製
複製
已複製
*/
*/
int sceKernelFreeMemBlock(SceUID uid);
int sceKernelFreeMemBlock(SceUID uid);
複製
已複製
複製
已複製
/***
/***
* Gets the base address of a memoy block
* Gets the base address of a memoy block
*
*
* @param[in] uid - SceUID of the memory block to free
* @param[in] uid - SceUID of the memory block to free
* @param[out] basep - Base address of the memory block identified by SceUID
* @param[out] basep - Base address of the memory block identified by SceUID
*
*
* @return 0 on success, < 0 on error.
* @return 0 on success, < 0 on error.
複製
已複製
複製
已複製
*/
*/
int sceKernelGetMemBlockBase(SceUID uid, void **basep);
int sceKernelGetMemBlockBase(SceUID uid, void **basep);
複製
已複製
複製
已複製
SceUID sceKernelFindMemBlockByAddr(const void *, int);
void sceKernelSyncVMDomain(SceUID, void *, SceSize);
void sceKernelOpenVMDomain();
void sceKernelCloseVMDomain();
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
複製
已複製
複製
已複製
#endif
/* _PSP2_KERNEL_MEMORYMGR_H_ */
#endif
已保存差異
原始文本
開啟檔案
#ifndef _PSP2_KERNEL_MEMORYMGR_H_ #define _PSP2_KERNEL_MEMORYMGR_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif enum { SCE_KERNEL_MEMBLOCK_TYPE_USER_RW = 0x0c20d060, SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE = 0x0c208060, SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_RW = 0x0c80d060, SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_RW = 0x0d808060, SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW = 0x09408060 }; /*** * Allocates a new memoy block * * @param[in] name - Name for the memory block * @param[in] type - Type of the memory to allocate * @param[in] size - Size of the memory to allocate * @param[in] optp - Memory block options? * * @return SceUID of the memory block on success, < 0 on error. */ SceUID sceKernelAllocMemBlock(const char *name, int type, int size, void *optp); /*** * Frees new memoy block * * @param[in] uid - SceUID of the memory block to free * * @return 0 on success, < 0 on error. */ int sceKernelFreeMemBlock(SceUID uid); /*** * Gets the base address of a memoy block * * @param[in] uid - SceUID of the memory block to free * @param[out] basep - Base address of the memory block identified by SceUID * * @return 0 on success, < 0 on error. */ int sceKernelGetMemBlockBase(SceUID uid, void **basep); #ifdef __cplusplus } #endif #endif /* _PSP2_KERNEL_MEMORYMGR_H_ */
更改後文本
開啟檔案
/** * \file * \brief Header file which defines memory related variables and functions * * Copyright (C) 2015 PSP2SDK Project * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef _PSP2_KERNEL_SYSMEM_H_ #define _PSP2_KERNEL_SYSMEM_H_ #include <psp2/types.h> #ifdef __cplusplus extern "C" { #endif typedef int SceKernelMemBlockType; enum { SCE_KERNEL_MEMBLOCK_TYPE_USER_RW = 0x0c20d060, SCE_KERNEL_MEMBLOCK_TYPE_USER_RW_UNCACHE = 0x0c208060, SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_RW = 0x0c80d060, SCE_KERNEL_MEMBLOCK_TYPE_USER_MAIN_PHYCONT_NC_RW = 0x0d808060, SCE_KERNEL_MEMBLOCK_TYPE_USER_CDRAM_RW = 0x09408060 }; /*** * Allocates a new memoy block * * @param[in] name - Name for the memory block * @param[in] type - Type of the memory to allocate * @param[in] size - Size of the memory to allocate * @param[in] optp - Memory block options? * * @return SceUID of the memory block on success, < 0 on error. */ SceUID sceKernelAllocMemBlock(const char *name, SceKernelMemBlockType type, int size, void *optp); SceUID sceKernelAllocMemBlockForVM(const char *, SceSize); /*** * Frees new memoy block * * @param[in] uid - SceUID of the memory block to free * * @return 0 on success, < 0 on error. */ int sceKernelFreeMemBlock(SceUID uid); /*** * Gets the base address of a memoy block * * @param[in] uid - SceUID of the memory block to free * @param[out] basep - Base address of the memory block identified by SceUID * * @return 0 on success, < 0 on error. */ int sceKernelGetMemBlockBase(SceUID uid, void **basep); SceUID sceKernelFindMemBlockByAddr(const void *, int); void sceKernelSyncVMDomain(SceUID, void *, SceSize); void sceKernelOpenVMDomain(); void sceKernelCloseVMDomain(); #ifdef __cplusplus } #endif #endif
尋找差異