Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 166) sorted by relevance

1234567

/CafeSDK-2.12.13-1/system/src/lib/szfile/
D7zStream.c8 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType) in SeqInStream_Read2() argument
10 while (size != 0) in SeqInStream_Read2()
12 size_t processed = size; in SeqInStream_Read2()
17 size -= processed; in SeqInStream_Read2()
22 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size) in SeqInStream_Read() argument
24 return SeqInStream_Read2(stream, buf, size, SZ_ERROR_INPUT_EOF); in SeqInStream_Read()
40 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size) in LookInStream_LookRead() argument
43 if (*size == 0) in LookInStream_LookRead()
45 RINOK(stream->Look(stream, &lookBuf, size)); in LookInStream_LookRead()
46 memcpy(buf, lookBuf, *size); in LookInStream_LookRead()
[all …]
D7zBuf.c11 p->size = 0; in Buf_Init()
14 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc) in Buf_Create() argument
16 p->size = 0; in Buf_Create()
17 if (size == 0) in Buf_Create()
22 p->data = (Byte *)alloc->Alloc(alloc, size); in Buf_Create()
25 p->size = size; in Buf_Create()
35 p->size = 0; in Buf_Free()
D7zAlloc.c21 void *SzAlloc(void *p, size_t size) in SzAlloc() argument
24 if (size == 0) in SzAlloc()
27 fprintf(stderr, "\nAlloc %10d bytes; count = %10d", size, g_allocCount); in SzAlloc()
30 return malloc(size); in SzAlloc()
46 void *SzAllocTemp(void *p, size_t size) in SzAllocTemp() argument
49 if (size == 0) in SzAllocTemp()
52 fprintf(stderr, "\nAlloc_temp %10d bytes; count = %10d", size, g_allocCountTemp); in SzAllocTemp()
55 return HeapAlloc(GetProcessHeap(), 0, size); in SzAllocTemp()
58 return malloc(size); in SzAllocTemp()
D7zCrcOpt.c10 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT4() argument
13 for (; size > 0 && ((unsigned)(ptrdiff_t)p & 3) != 0; size--, p++) in CrcUpdateT4()
15 for (; size >= 4; size -= 4, p += 4) in CrcUpdateT4()
24 for (; size > 0; size--, p++) in CrcUpdateT4()
29 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT8() argument
31 return CrcUpdateT4(v, data, size, table); in CrcUpdateT8()
D7zBuf2.c10 p->size = 0; in DynBuf_Construct()
19 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc) in DynBuf_Write() argument
21 if (size > p->size - p->pos) in DynBuf_Write()
23 size_t newSize = p->pos + size; in DynBuf_Write()
29 p->size = newSize; in DynBuf_Write()
34 memcpy(p->data + p->pos, buf, size); in DynBuf_Write()
35 p->pos += size; in DynBuf_Write()
43 p->size = 0; in DynBuf_Free()
D7zCrc.c15 typedef UInt32 (MY_FAST_CALL *CRC_FUNC)(UInt32 v, const void *data, size_t size, const UInt32 *tabl…
24 static UInt32 MY_FAST_CALL CrcUpdateT1(UInt32 v, const void *data, size_t size, const UInt32 *table) in CrcUpdateT1() argument
27 for (; size > 0; size--, p++) in CrcUpdateT1()
34 UInt32 MY_FAST_CALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
35 UInt32 MY_FAST_CALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
39 UInt32 MY_FAST_CALL CrcUpdate(UInt32 v, const void *data, size_t size) in CrcUpdate() argument
41 return g_CrcUpdate(v, data, size, g_CrcTable); in CrcUpdate()
44 UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size) in CrcCalc() argument
46 return g_CrcUpdate(CRC_INIT_VAL, data, size, g_CrcTable) ^ CRC_INIT_VAL; in CrcCalc()
D7zTypes.h139 SRes (*Read)(void *p, void *buf, size_t *size);
145 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size);
146 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType);
151 size_t (*Write)(void *p, const void *buf, size_t size);
165 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
171 SRes (*Look)(void *p, const void **buf, size_t *size);
178 SRes (*Read)(void *p, void *buf, size_t *size);
183 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size);
187 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType);
188 SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size);
[all …]
D7zFile.c97 WRes File_Read(CSzFile *p, void *data, size_t *size) in File_Read() argument
99 size_t originalSize = *size; in File_Read()
105 *size = 0; in File_Read()
113 *size += processed; in File_Read()
124 *size = fread(data, 1, originalSize, p->file); in File_Read()
125 if (*size == originalSize) in File_Read()
132 WRes File_Write(CSzFile *p, const void *data, size_t *size) in File_Write() argument
134 size_t originalSize = *size; in File_Write()
140 *size = 0; in File_Write()
148 *size += processed; in File_Write()
[all …]
/CafeSDK-2.12.13-1/system/include/windows/
Dmem.h32 #define MEMAllocFromDefaultHeap(size) malloc(size) argument
33 #define MEMAllocFromDefaultHeapEx(size, alignment) malloc(size) argument
34 #define MEMAllocFromExpHeap(heap, size) malloc(size) argument
35 #define MEMAllocFromExpHeapEx(heap, size, alignment) malloc(size) argument
36 #define MEMAllocFromFrmHeap(heap, size) malloc(size) argument
37 #define MEMAllocFromFrmHeapEx(heap, size, alignment) malloc(size) argument
45 #define MEMAllocFromAllocator(pAllocator, size) malloc(size) argument
50 #define MEMCreateExpHeap(startAddress, size) malloc(size) argument
53 #define ProcUISetMEM1Storage(data, size) argument
/CafeSDK-2.12.13-1/system/src/lib/libsys/
Dind_alloc.c21 void *__ghs_alloc (int size, int align);
35 void *__ghs_alloc (int size, int align)
47 if (ret == m1 || sbrk(size) == m1) /* do the real allocation */
62 void *__ghs_calloc (int size, int align) in __ghs_calloc() argument
64 void *p = __ghs_alloc(size, align); in __ghs_calloc()
67 return memset(p, '\0', size); in __ghs_calloc()
Dghsheap.c32 void *sbrk (size_t size) in sbrk() argument
36 if (size != 0) { in sbrk()
37 ret = MEMAllocFromDefaultHeapEx(size,PPC_IO_BUFFER_ALIGN); in sbrk()
46 void *__ghs_alloc (int size, int align) in __ghs_alloc() argument
49 return MEMAllocFromDefaultHeapEx(size, align); in __ghs_alloc()
Dind_io.c77 int __ghs_hostio_write (int fno, const void *buf, int size) in __ghs_hostio_write() argument
80 OSConsoleWrite(buf, size); in __ghs_hostio_write()
81 return size; in __ghs_hostio_write()
84 return __ghs_syscall(SYSCALL_WRITE, fno, buf, size); in __ghs_hostio_write()
91 int __ghs_hostio_write (int fno, const void *buf, int size)
94 return __ghs_syscall(SYSCALL_WRITE, fno, buf, size);
111 int __ghs_hostio_read (int fno, void *buf, int size) in __ghs_hostio_read() argument
114 return __ghs_syscall(SYSCALL_READ, fno, buf, size); in __ghs_hostio_read()
/CafeSDK-2.12.13-1/system/include/nn/fp/
Dfp_Api.h243 nn::Result GetFriendList(PrincipalId* pList, size_t* pNum, size_t offset, size_t size);
267 nn::Result GetFriendListAll(PrincipalId* pList, size_t* pNum, size_t offset, size_t size);
281 …GetFriendAccountId(char (*pAidList)[FP_ACCOUNT_ID_SIZE], const PrincipalId* pPidList, size_t size);
307 …*pNameList)[FP_MII_SCREEN_NAME_SIZE], const PrincipalId* pPidList, size_t size, bool replaceForeig…
323 nn::Result GetFriendMii(FFLStoreData* pMiiDataList, const PrincipalId* pPidList, size_t size);
337 nn::Result GetFriendProfile(Profile* pProfileList, const PrincipalId* pPidList, size_t size);
351 nn::Result GetFriendApprovalTime(DateTime* pTimeList, const PrincipalId* pPidList, size_t size);
367 nn::Result GetFriendSortTime(DateTime* pTimeList, const PrincipalId* pPidList, size_t size);
383 …:Result GetFriendPresence(FriendPresence* pPresenceList, const PrincipalId* pPidList, size_t size);
397 nn::Result GetFriendRelationship(u8* pRelationList, const PrincipalId* pPidList, size_t size);
[all …]
/CafeSDK-2.12.13-1/system/src/lib/demo/headers/cafe/demo/
Ddemowin.h66 virtual void GetData(void*& data, int& size) {data = NULL; size = 0;} in GetData()
104 CVec2 size; member
168 …sible(true), position(_position), size(_size), x(position.x), y(position.y), z(position.z), width( in window()
171 …ible), position(copy.position), size(copy.size), x(position.x), y(position.y), z(position.z), widt… in MenuItem()
181 void DrawText(const char* text, CVec3 position, CVec2 size, CVec4 color) in DrawText()
182 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawText()
183 void DrawTextCenter(const char* text, CVec3 position, CVec2 size, CVec4 color) in DrawTextCenter()
184 …r(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextCenter()
185 void DrawTextRight(const char* text, CVec3 position, CVec2 size, CVec4 color) in DrawTextRight()
186 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextRight()
[all …]
/CafeSDK-2.12.13-1/system/include/cafe/demo/
Ddemowin.h66 virtual void GetData(void*& data, int& size) {data = NULL; size = 0;} in GetData()
104 CVec2 size; member
168 …sible(true), position(_position), size(_size), x(position.x), y(position.y), z(position.z), width( in window()
171 …ible), position(copy.position), size(copy.size), x(position.x), y(position.y), z(position.z), widt… in MenuItem()
181 void DrawText(const char* text, CVec3 position, CVec2 size, CVec4 color) in DrawText()
182 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawText()
183 void DrawTextCenter(const char* text, CVec3 position, CVec2 size, CVec4 color) in DrawTextCenter()
184 …r(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextCenter()
185 void DrawTextRight(const char* text, CVec3 position, CVec2 size, CVec4 color) in DrawTextRight()
186 …t(text, CVec3(window->GetX() + position.x, window->GetY() + position.y, position.z), size, color);} in DrawTextRight()
[all …]
/CafeSDK-2.12.13-1/system/src/lib/demo/headers/cafe/demo/demowin/
Ddemowin_peripheral.h21 …virtual void DrawWindowQuad(CVec2 position, CVec2 size, bool active, bool enabled, CVec3 color, co…
22 virtual void DrawText(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
23 virtual void DrawTextCenter(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
24 virtual void DrawTextRight(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
25 virtual void DrawMultiLineText(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
26 …virtual void DrawBox(CVec3 position, CVec2 size, CVec4 color, CVec4 color1 = CVec4(0, 0, 0, 1.0)) …
27 virtual void DrawLine(CVec3 position, CVec2 size, CVec4 color) = 0;
28 virtual void DrawFastLine(CVec3 position, CVec2 size, CVec4 color) = 0;
29 virtual void DrawQuad(CVec3 position, CVec2 size, CVec4 color) = 0;
30 virtual void DrawTexQuad(GX2Texture* tex, CVec3 position, CVec2 size, CVec4 color) = 0;
[all …]
Ddemowin_scroll_bar.h18 ScrollBar(Window* window, CVec3 position, CVec2 size, float _count = 0, float _max = 10)
19 …: MenuItem(window, position, size), pos(0), subHeight(size.y / 10), count(_count), max(_max), pPos… in MenuItem()
21 ScrollBar(Window* window, CVec3 position, CVec2 size, float* _pPos, float _count, float _max) in ScrollBar()
22 …: MenuItem(window, position, size), subHeight(size.y / 10), count(_count), max(_max), pPos(_pPos) … in ScrollBar()
Ddemowin_double_combo_box.h18 …DoubleComboBox(Window* window, CVec3 position, CVec2 size, SubCombo** _data, int _count, int* _tar…
19size), data(_data), count(_count), over1(-1), over2(-1), pos1(0), pos2(0), target1(_target1), targ… in MenuItem()
/CafeSDK-2.12.13-1/system/include/cafe/demo/demowin/
Ddemowin_peripheral.h21 …virtual void DrawWindowQuad(CVec2 position, CVec2 size, bool active, bool enabled, CVec3 color, co…
22 virtual void DrawText(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
23 virtual void DrawTextCenter(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
24 virtual void DrawTextRight(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
25 virtual void DrawMultiLineText(const char* text, CVec3 position, CVec2 size, CVec4 color) = 0;
26 …virtual void DrawBox(CVec3 position, CVec2 size, CVec4 color, CVec4 color1 = CVec4(0, 0, 0, 1.0)) …
27 virtual void DrawLine(CVec3 position, CVec2 size, CVec4 color) = 0;
28 virtual void DrawFastLine(CVec3 position, CVec2 size, CVec4 color) = 0;
29 virtual void DrawQuad(CVec3 position, CVec2 size, CVec4 color) = 0;
30 virtual void DrawTexQuad(GX2Texture* tex, CVec3 position, CVec2 size, CVec4 color) = 0;
[all …]
Ddemowin_scroll_bar.h18 ScrollBar(Window* window, CVec3 position, CVec2 size, float _count = 0, float _max = 10)
19 …: MenuItem(window, position, size), pos(0), subHeight(size.y / 10), count(_count), max(_max), pPos… in MenuItem()
21 ScrollBar(Window* window, CVec3 position, CVec2 size, float* _pPos, float _count, float _max) in ScrollBar()
22 …: MenuItem(window, position, size), subHeight(size.y / 10), count(_count), max(_max), pPos(_pPos) … in ScrollBar()
Ddemowin_double_combo_box.h18 …DoubleComboBox(Window* window, CVec3 position, CVec2 size, SubCombo** _data, int _count, int* _tar…
19size), data(_data), count(_count), over1(-1), over2(-1), pos1(0), pos2(0), target1(_target1), targ… in MenuItem()
Ddemowin_held_button.h18 …HeldButton(Window* window, CVec3 position, CVec2 size, ColorFunc _colorFunc = BlackLighter, VoidFu…
19 …: MenuItem(window, position, size), text(""), tex(NULL), colorFunc(_colorFunc), func(_func), funcE… in MenuItem()
21 …HeldButton(Window* window, CVec3 position, CVec2 size, const char* _text, ColorFunc _colorFunc = B…
22 …: MenuItem(window, position, size), text(_text), tex(NULL), colorFunc(_colorFunc), func(_func), fu… in MenuItem()
24 …HeldButton(Window* window, CVec3 position, CVec2 size, GX2Texture** _tex, ColorFunc _colorFunc = B…
25 …: MenuItem(window, position, size), text(""), tex(_tex), colorFunc(_colorFunc), func(_func), funcE… in MenuItem()
/CafeSDK-2.12.13-1/system/include/
DLzmaTypes.h139 SRes (*Read)(void *p, void *buf, size_t *size);
145 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size);
146 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType);
151 size_t (*Write)(void *p, const void *buf, size_t size);
165 SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */
171 SRes (*Look)(void *p, const void **buf, size_t *size);
178 SRes (*Read)(void *p, void *buf, size_t *size);
183 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size);
187 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType);
188 SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size);
[all …]
/CafeSDK-2.12.13-1/system/include/cafe/os/
DOSMemmap.h35 va_t OSAllocVirtAddr(va_t va, size_t size, size_t align);
36 BOOL OSFreeVirtAddr(va_t va, size_t size);
38 void OSGetMapVirtAddrRange(va_t *va, size_t *size);
41 BOOL OSMapMemory(va_t va, pa_t pa, size_t size, int mode);
42 BOOL OSUnmapMemory(va_t va, size_t size);
/CafeSDK-2.12.13-1/system/include/nn/ec/
Dec_RootObject.h30 void* operator new(size_t size);
32 void* operator new[](size_t size);
35 void* operator new(size_t size, void* pMemory);
37 void* operator new[](size_t size, void* pMemory);

1234567