Searched refs:mLength (Results 1 - 25 of 39) sorted by relevance

12

/macosx-10.10.1/Security-57031.1.35/Security/include/securityd_client/
H A Dxdr_dldb.h37 CopyIn(const void *data, xdrproc_t proc) : mLength(0), mData(0) {
38 if (data && !::copyin(static_cast<uint8_t*>(const_cast<void *>(data)), proc, &mData, &mLength))
42 u_int length() { return mLength; }
45 u_int mLength; member in class:CopyIn
53 CopyOut(void *copy, size_t size, xdrproc_t proc, bool dealloc = false, CSSM_DATA *in_out_data = NULL) : mLength(in_out_data?(u_int)in_out_data->Length:0), mData(NULL), mInOutData(in_out_data), mDealloc(dealloc), mSource(copy), mSourceLen(size) {
54 if (copy && size && !::copyout(copy, (u_int)size, proc, mInOutData ? reinterpret_cast<void**>(&mInOutData) : &mData, &mLength)) {
62 u_int length() { return mLength; }
66 u_int mLength; member in class:CopyOut
H A Dsstransit.h86 : allocator(alloc), mTarget(&arg) { mData = NULL; mLength = 0; }
88 : allocator(alloc), mTarget(arg) { mData = NULL; mLength = 0; }
92 mach_msg_type_number_t *length() { return &mLength; }
99 mach_msg_type_number_t mLength; member in class:Security::SecurityServer::DataOutput
125 operator mach_msg_type_number_t *() { return &mLength; }
132 mach_msg_type_number_t mLength; member in class:Security::SecurityServer::DataRetrieval
H A Dsstransit.cpp45 VMGuard _(mData, mLength);
49 if (mTarget->length() < mLength)
51 mTarget->length(mLength); // no allocation; shorten buffer
53 *mTarget = CssmData(allocator.malloc(mLength), mLength);
55 memcpy(mTarget->data(), mData, mLength);
150 mAllocator(alloc), mAttributes(attributes), mAddr(NULL), mBase(NULL), mLength(0)
/macosx-10.10.1/Security-57031.1.35/Security/libsecurityd/lib/
H A Dxdr_dldb.h37 CopyIn(const void *data, xdrproc_t proc) : mLength(0), mData(0) {
38 if (data && !::copyin(static_cast<uint8_t*>(const_cast<void *>(data)), proc, &mData, &mLength))
42 u_int length() { return mLength; }
45 u_int mLength; member in class:CopyIn
53 CopyOut(void *copy, size_t size, xdrproc_t proc, bool dealloc = false, CSSM_DATA *in_out_data = NULL) : mLength(in_out_data?(u_int)in_out_data->Length:0), mData(NULL), mInOutData(in_out_data), mDealloc(dealloc), mSource(copy), mSourceLen(size) {
54 if (copy && size && !::copyout(copy, (u_int)size, proc, mInOutData ? reinterpret_cast<void**>(&mInOutData) : &mData, &mLength)) {
62 u_int length() { return mLength; }
66 u_int mLength; member in class:CopyOut
H A Dsstransit.h86 : allocator(alloc), mTarget(&arg) { mData = NULL; mLength = 0; }
88 : allocator(alloc), mTarget(arg) { mData = NULL; mLength = 0; }
92 mach_msg_type_number_t *length() { return &mLength; }
99 mach_msg_type_number_t mLength; member in class:Security::SecurityServer::DataOutput
125 operator mach_msg_type_number_t *() { return &mLength; }
132 mach_msg_type_number_t mLength; member in class:Security::SecurityServer::DataRetrieval
H A Dsstransit.cpp45 VMGuard _(mData, mLength);
49 if (mTarget->length() < mLength)
51 mTarget->length(mLength); // no allocation; shorten buffer
53 *mTarget = CssmData(allocator.malloc(mLength), mLength);
55 memcpy(mTarget->data(), mData, mLength);
150 mAllocator(alloc), mAttributes(attributes), mAddr(NULL), mBase(NULL), mLength(0)
/macosx-10.10.1/Security-57031.1.35/Security/include/security_filedb/
H A DReadWriteSection.h65 ReadSection(uint8 *inAddress, size_t inLength) : mAddress(inAddress), mLength(inLength)
71 ReadSection() : mAddress(NULL), mLength(0) {}
73 mAddress(const_cast<uint8 *>(inAddress)), mLength(inLength) {}
75 uint32 size() const { return (uint32)mLength; }
79 if (inOffset > mLength)
95 if (inOffset > mLength)
97 return ReadSection(mAddress + inOffset, mLength - inOffset);
103 if (CheckUInt32Add(inOffset, inLength) > mLength)
115 if (CheckUInt32Add(inRange.mOffset, inRange.mSize) > mLength)
127 if (CheckUInt32Add(inRange.mOffset, inRange.mSize) > mLength)
141 size_t mLength; member in class:Security::ReadSection
[all...]
H A DAtomicFile.h110 off_t length() const { return mLength; }
127 off_t mLength; member in class:Security::AtomicBufferedFile
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_filedb/lib/
H A DReadWriteSection.h65 ReadSection(uint8 *inAddress, size_t inLength) : mAddress(inAddress), mLength(inLength)
71 ReadSection() : mAddress(NULL), mLength(0) {}
73 mAddress(const_cast<uint8 *>(inAddress)), mLength(inLength) {}
75 uint32 size() const { return (uint32)mLength; }
79 if (inOffset > mLength)
95 if (inOffset > mLength)
97 return ReadSection(mAddress + inOffset, mLength - inOffset);
103 if (CheckUInt32Add(inOffset, inLength) > mLength)
115 if (CheckUInt32Add(inRange.mOffset, inRange.mSize) > mLength)
127 if (CheckUInt32Add(inRange.mOffset, inRange.mSize) > mLength)
141 size_t mLength; member in class:Security::ReadSection
[all...]
H A DAtomicFile.h110 off_t length() const { return mLength; }
127 off_t mLength; member in class:Security::AtomicBufferedFile
/macosx-10.10.1/SecurityTokend-55108/lib/
H A Dtdtransit.h69 : argument(arg), allocator(alloc) { mData = NULL; mLength = 0; }
73 mach_msg_type_number_t *length() { return &mLength; }
80 mach_msg_type_number_t mLength; member in class:Security::Tokend::DataOutput
H A Dtransit.h84 : mData(*outP), mLength(*outLength) { }
86 { mData = data(); mLength = length(); server->releaseWhenDone(Allocator::standard(), mData); }
93 mach_msg_type_number_t &mLength; member in class:Security::Tokend::OutputData
/macosx-10.10.1/SecurityTokend-55108/security_tokend_client/
H A Dtdtransit.h69 : argument(arg), allocator(alloc) { mData = NULL; mLength = 0; }
73 mach_msg_type_number_t *length() { return &mLength; }
80 mach_msg_type_number_t mLength; member in class:Security::Tokend::DataOutput
/macosx-10.10.1/Security-57031.1.35/Security/include/security_cdsa_utilities/
H A Dwalkers.h337 mLength = 0;
339 mLength = size(const_cast<T *>(obj));
341 mValue = reinterpret_cast<T *>(alloc.malloc(mLength));
343 mValue = alloc.malloc<T>(mLength);
354 mLength = 0;
360 mLength = sizer;
362 mValue = reinterpret_cast<T *>(alloc.malloc(mLength));
364 mValue = alloc.malloc<T>(mLength);
380 size_t length() const { return mLength; }
386 size_t mLength; member in class:Security::DataWalkers::Copier
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_cdsa_utilities/lib/
H A Dwalkers.h337 mLength = 0;
339 mLength = size(const_cast<T *>(obj));
341 mValue = reinterpret_cast<T *>(alloc.malloc(mLength));
343 mValue = alloc.malloc<T>(mLength);
354 mLength = 0;
360 mLength = sizer;
362 mValue = reinterpret_cast<T *>(alloc.malloc(mLength));
364 mValue = alloc.malloc<T>(mLength);
380 size_t length() const { return mLength; }
386 size_t mLength; member in class:Security::DataWalkers::Copier
[all...]
/macosx-10.10.1/Security-57031.1.35/Security/include/security_utilities/
H A Ddyldcache.cpp78 mLength = this->fileSize();
79 mBase = this->mmap(PROT_READ, mLength);
93 ::munmap((void *)mBase, mLength);
H A Dblob.h62 size_t length() const { return mLength; }
65 { mMagic = magic; mLength = (uint32_t)length; }
90 void length(size_t size) { mLength = (uint32_t)size; }
114 Endian<uint32_t> mLength; member in class:Security::BlobCore
121 uint32_t length = this->mLength;
152 { return extLength >= sizeof(BlobType) && validateBlob() && mLength == extLength; }
H A Dmacho++.h142 size_t length() const { return mLength; }
153 size_t mLength; // Mach-O file length member in class:Security::MachO
214 size_t length() const { return mLength; }
230 size_t mLength; // length of the architecture if thin file member in class:Security::Universal
H A Ddyldcache.h54 size_t totalSize() const { return mLength; } // size of entire file (>= mapSize(), we hope)
145 size_t mLength; member in class:DYLDCache
H A Dmach++.h254 VMGuard(void *addr, size_t length) : mAddr(addr), mLength(length) { }
255 ~VMGuard() { deallocate(mAddr, mLength); }
259 size_t mLength; member in class:Security::MachPlusPlus::VMGuard
/macosx-10.10.1/Security-57031.1.35/Security/libsecurity_utilities/lib/
H A Ddyldcache.cpp78 mLength = this->fileSize();
79 mBase = this->mmap(PROT_READ, mLength);
93 ::munmap((void *)mBase, mLength);
H A Dblob.h62 size_t length() const { return mLength; }
65 { mMagic = magic; mLength = (uint32_t)length; }
90 void length(size_t size) { mLength = (uint32_t)size; }
114 Endian<uint32_t> mLength; member in class:Security::BlobCore
121 uint32_t length = this->mLength;
152 { return extLength >= sizeof(BlobType) && validateBlob() && mLength == extLength; }
H A Dmacho++.h142 size_t length() const { return mLength; }
153 size_t mLength; // Mach-O file length member in class:Security::MachO
214 size_t length() const { return mLength; }
230 size_t mLength; // length of the architecture if thin file member in class:Security::Universal
H A Ddyldcache.h54 size_t totalSize() const { return mLength; } // size of entire file (>= mapSize(), we hope)
145 size_t mLength; member in class:DYLDCache
H A Dmach++.h254 VMGuard(void *addr, size_t length) : mAddr(addr), mLength(length) { }
255 ~VMGuard() { deallocate(mAddr, mLength); }
259 size_t mLength; member in class:Security::MachPlusPlus::VMGuard

Completed in 217 milliseconds

12