Lines Matching refs:size

13 #define MY_ALLOC(T, p, size, alloc) \

14 { if ((p = (T *)ISzAlloc_Alloc(alloc, (size) * sizeof(T))) == NULL) return SZ_ERROR_MEM; }
16 #define MY_ALLOC_ZE(T, p, size, alloc) \
17 { if ((size) == 0) p = NULL; else MY_ALLOC(T, p, size, alloc) }
19 #define MY_ALLOC_AND_CPY(to, size, from, alloc) \
20 { MY_ALLOC(Byte, to, size, alloc); memcpy(to, from, size); }
22 #define MY_ALLOC_ZE_AND_CPY(to, size, from, alloc) \
23 { if ((size) == 0) to = NULL; else { MY_ALLOC_AND_CPY(to, size, from, alloc) } }
199 #define SKIP_DATA(sd, size) { sd->Size -= (size_t)(size); sd->Data += (size_t)(size); }
200 #define SKIP_DATA2(sd, size) { sd.Size -= (size_t)(size); sd.Data += (size_t)(size); }
270 UInt64 size;
271 RINOK(ReadNumber(sd, &size))
272 if (size > sd->Size)
274 SKIP_DATA(sd, size)
675 sd.Size = tempBufs[index].size;
1024 RINOK(SzAr_DecodeFolder(p, fo, inStream, dataStartPos, tempBuf->data, tempBuf->size, allocTemp))
1030 static SRes SzReadFileNames(const Byte *data, size_t size, UInt32 numFiles, size_t *offsets)
1035 return (size == 0) ? SZ_OK : SZ_ERROR_ARCHIVE;
1036 if (size < 2)
1038 if (data[size - 2] != 0 || data[size - 1] != 0)
1043 if (pos == size)
1056 return (pos == size) ? SZ_OK : SZ_ERROR_ARCHIVE;
1082 sd.Size = tempBufs[index].size;
1193 UInt64 size;
1197 RINOK(ReadNumber(sd, &size))
1198 if (size > sd->Size)
1203 SKIP_DATA(sd, size)
1216 namesSize = (size_t)size - 1;
1226 namesSize = (tempBufs)[index].size;
1270 sdSwitch.Size = (tempBufs)[index].size;
1290 SKIP_DATA(sd, size)
1580 sd.Size = buf.size;
1604 buf.size = tempBuf.size;
1606 sd.Size = buf.size;