Lines Matching refs:GuardedCopy
919 struct GuardedCopy {
925 /* find the GuardedCopy given the pointer into the "live" data */
926 static inline const GuardedCopy* FromData(const void* dataBuf) {
927 return reinterpret_cast<const GuardedCopy*>(ActualBuffer(dataBuf));
957 GuardedCopy* pExtra = reinterpret_cast<GuardedCopy*>(newBuf);
970 const GuardedCopy* pExtra = GuardedCopy::FromData(dataBuf);
986 const GuardedCopy* pExtra = GuardedCopy::FromData(dataBuf);
1004 for (size_t i = sizeof(GuardedCopy) / 2; i < (kGuardLen / 2 - sizeof(GuardedCopy)) / 2; i++) {
1047 PLOG(FATAL) << "GuardedCopy::create mmap(" << len << ") failed";
1089 void* result = GuardedCopy::Create(a->GetRawData(component_size), byte_count, true);
1108 GuardedCopy::Check(__FUNCTION__, dataBuf, true);
1111 size_t len = GuardedCopy::FromData(dataBuf)->original_length;
1115 GuardedCopy::Destroy(dataBuf);
1499 result = (const jchar*) GuardedCopy::Create(result, byteCount, false);
1511 GuardedCopy::Check(__FUNCTION__, chars, false);
1512 chars = reinterpret_cast<const jchar*>(GuardedCopy::Destroy(const_cast<jchar*>(chars)));
1532 result = (const char*) GuardedCopy::Create(result, strlen(result) + 1, false);
1543 GuardedCopy::Check(__FUNCTION__, utf, false);
1544 utf = reinterpret_cast<const char*>(GuardedCopy::Destroy(const_cast<char*>(utf)));
1726 result = (const jchar*) GuardedCopy::Create(result, byteCount, false);
1738 GuardedCopy::Check(__FUNCTION__, carray, false);
1739 carray = reinterpret_cast<const jchar*>(GuardedCopy::Destroy(const_cast<jchar*>(carray)));