Lines Matching refs:aSize

385     // Returns the number of VarType() elements necessary for aSize
387 static ULONG VarCount(size_t aSize);
390 // VarType() elements (opposite to VarCount(size_t aSize)).
436 static ULONG VarCount(size_t aSize)
438 if (sizeof(T) % 8 == 0) return (ULONG)((sizeof(T) / 8) * aSize);
439 if (sizeof(T) % 4 == 0) return (ULONG)((sizeof(T) / 4) * aSize);
440 if (sizeof(T) % 2 == 0) return (ULONG)((sizeof(T) / 2) * aSize);
441 return (ULONG)(sizeof(T) * aSize);
470 static ULONG VarCount(size_t aSize) { return (ULONG)aSize; }
482 static ULONG VarCount(size_t aSize) { return (ULONG)aSize; }
494 static ULONG VarCount(size_t aSize) { return (ULONG)aSize; }
506 static ULONG VarCount(size_t aSize) { return (ULONG)aSize; }
518 static ULONG VarCount(size_t aSize) { return (ULONG)aSize; }
536 static ULONG VarCount(size_t aSize)
539 return (ULONG)(aSize * 2);
619 * @param aSize Initial number of elements in the array.
625 SafeArray(size_t aSize) { resize(aSize); }
1066 inline void initFrom(const T* aPtr, size_t aSize);
1276 inline void com::SafeArray<BYTE>::initFrom(const BYTE* aPtr, size_t aSize)
1278 resize(aSize);
1279 ::memcpy(raw(), aPtr, aSize);
1291 inline void com::SafeArray<SHORT>::initFrom(const SHORT* aPtr, size_t aSize)
1293 resize(aSize);
1294 ::memcpy(raw(), aPtr, aSize * sizeof(SHORT));
1305 inline void com::SafeArray<USHORT>::initFrom(const USHORT* aPtr, size_t aSize)
1307 resize(aSize);
1308 ::memcpy(raw(), aPtr, aSize * sizeof(USHORT));
1319 inline void com::SafeArray<LONG>::initFrom(const LONG* aPtr, size_t aSize)
1321 resize(aSize);
1322 ::memcpy(raw(), aPtr, aSize * sizeof(LONG));
1397 SafeGUIDArray(size_t aSize) : Base(aSize) {}
1517 static ULONG VarCount(size_t aSize) { return (ULONG)aSize; }
1566 * @param aSize Initial number of elements in the array. Must be greater
1573 SafeIfaceArray(size_t aSize) { Base::resize(aSize); }