Home
last modified time | relevance | path

Searched refs:BufferSize (Results 1 – 25 of 56) sorted by relevance

123

/external/clang/lib/AST/
DNestedNameSpecifier.cpp436 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, in Append() argument
438 if (BufferSize + (End - Start) > BufferCapacity) { in Append()
443 (unsigned)(BufferSize + (End - Start))); in Append()
445 memcpy(NewBuffer, Buffer, BufferSize); in Append()
453 memcpy(Buffer + BufferSize, Start, End - Start); in Append()
454 BufferSize += End-Start; in Append()
459 unsigned &BufferSize, unsigned &BufferCapacity) { in SaveSourceLocation() argument
463 Buffer, BufferSize, BufferCapacity); in SaveSourceLocation()
467 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, in SavePointer() argument
471 Buffer, BufferSize, BufferCapacity); in SavePointer()
[all …]
/external/llvm/include/llvm/Support/
DFormat.h45 virtual int snprint(char *Buffer, unsigned BufferSize) const = 0;
53 unsigned print(char *Buffer, unsigned BufferSize) const { in print() argument
54 assert(BufferSize && "Invalid buffer size!"); in print()
57 int N = snprint(Buffer, BufferSize); in print()
61 return BufferSize * 2; in print()
65 if (unsigned(N) >= BufferSize) in print()
83 int snprint_tuple(char *Buffer, unsigned BufferSize, in snprint_tuple() argument
86 return _snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...); in snprint_tuple()
88 return snprintf(Buffer, BufferSize, Fmt, std::get<Is>(Vals)...); in snprint_tuple()
96 int snprint(char *Buffer, unsigned BufferSize) const override { in snprint() argument
[all …]
Dcircular_raw_ostream.h52 size_t BufferSize; variable
77 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
112 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
114 if (BufferSize != 0) in raw_ostream()
115 BufferArray = new char[BufferSize]; in raw_ostream()
DFormattedStream.h69 if (size_t BufferSize = TheStream->GetBufferSize()) in setStream() local
70 SetBufferSize(BufferSize); in setStream()
140 if (size_t BufferSize = GetBufferSize()) in releaseStream() local
141 TheStream->SetBufferSize(BufferSize); in releaseStream()
/external/llvm/lib/Support/
Dcircular_raw_ostream.cpp19 if (BufferSize == 0) { in write_impl()
27 std::min(unsigned(Size), unsigned(BufferSize - (Cur - BufferArray))); in write_impl()
31 if (Cur == BufferArray + BufferSize) { in write_impl()
40 if (BufferSize != 0) { in flushBufferWithBanner()
DStreamingMemoryObject.cpp51 uint64_t BufferSize = LastChar - FirstChar; in readBytes() local
52 if (Address >= BufferSize) in readBytes()
56 if (End > BufferSize) in readBytes()
57 End = BufferSize; in readBytes()
/external/mesa3d/src/mesa/main/
Dfeedback.c69 ctx->Feedback.BufferSize = 0; in _mesa_FeedbackBuffer()
96 ctx->Feedback.BufferSize = size; in _mesa_FeedbackBuffer()
183 ctx->Select.BufferSize = size; in _mesa_SelectBuffer()
203 if (ctx->Select.BufferCount < ctx->Select.BufferSize) { in write_record()
441 if (ctx->Select.BufferCount > ctx->Select.BufferSize) { in _mesa_RenderMode()
457 if (ctx->Feedback.Count > ctx->Feedback.BufferSize) { in _mesa_RenderMode()
476 if (ctx->Select.BufferSize==0) { in _mesa_RenderMode()
483 if (ctx->Feedback.BufferSize==0) { in _mesa_RenderMode()
533 ctx->Feedback.BufferSize = 0; in _mesa_init_feedback()
538 ctx->Select.BufferSize = 0; in _mesa_init_feedback()
/external/protobuf/src/google/protobuf/io/
Dcoded_stream.cc91 int backup_bytes = BufferSize() + buffer_size_after_limit_ + overflow_bytes_; in BackUpInputToCurrentPosition()
96 total_bytes_read_ -= BufferSize() + buffer_size_after_limit_; in BackUpInputToCurrentPosition()
190 const int original_buffer_size = BufferSize(); in Skip()
225 if (BufferSize() == 0 && !Refresh()) return false; in GetDirectBufferPointer()
228 *size = BufferSize(); in GetDirectBufferPointer()
234 while ((current_buffer_size = BufferSize()) < size) { in ReadRaw()
268 while ((current_buffer_size = BufferSize()) < size) { in ReadStringFallback()
292 if (BufferSize() >= sizeof(*value)) { in ReadLittleEndian32Fallback()
309 if (BufferSize() >= sizeof(*value)) { in ReadLittleEndian64Fallback()
371 if (BufferSize() >= kMaxVarintBytes || in ReadVarint32Fallback()
[all …]
Dcoded_stream.h566 int BufferSize() const;
852 if (GOOGLE_PREDICT_TRUE(BufferSize() >= static_cast<int>(sizeof(*value)))) { in ReadLittleEndian32()
866 if (GOOGLE_PREDICT_TRUE(BufferSize() >= static_cast<int>(sizeof(*value)))) { in ReadLittleEndian64()
945 if (GOOGLE_PREDICT_TRUE(BufferSize() >= 2) && in ExpectTag()
996 return total_bytes_read_ - (BufferSize() + buffer_size_after_limit_); in CurrentPosition()
1161 inline int CodedInputStream::BufferSize() const { in BufferSize() function
Dcoded_stream_inl.h52 if (BufferSize() >= size) { in InternalReadStringInline()
/external/llvm/tools/lli/ChildTarget/
DChildTarget.cpp133 size_t BufferSize = DataSize - 8; in handleLoadSection() local
135 if (!RT->isAllocatedMemory(Addr, BufferSize)) in handleLoadSection()
139 rc = ReadBytes((void*)Addr, BufferSize); in handleLoadSection()
140 if (rc != (int)(BufferSize)) in handleLoadSection()
145 sys::Memory::InvalidateInstructionCache((void *)Addr, BufferSize); in handleLoadSection()
/external/lzma/CPP/7zip/Common/
DFileStreams.cpp67 BufferSize(0) in CInFileStream()
104 if (BufferSize > 0 && BufferStartPos == alignedPos) in Read()
107 if (pos >= BufferSize) in Read()
109 UInt32 rem = MyMin(BufferSize - pos, size); in Read()
154 bool result = File.Read1(Buffer, readSize, BufferSize); in Read()
158 if (BufferSize == 0) in Read()
160 PhyPos += BufferSize; in Read()
/external/lzma/Java/SevenZip/
DLzmaBench.java62 public int BufferSize; field in LzmaBench.CBenchRandomGenerator
70 BufferSize = bufferSize; in Set()
90 while (Pos < BufferSize) in Generate()
107 for (int i = 0; i < len && Pos < BufferSize; i++, Pos++) in Generate()
323 crc.Update(rg.Buffer, 0, rg.BufferSize); in LzmaBenchmark()
333 MyInputStream inStream = new MyInputStream(rg.Buffer, rg.BufferSize); in LzmaBenchmark()
/external/llvm/include/llvm/MC/
DMCSchedule.h45 int BufferSize; member
49 && BufferSize == Other.BufferSize;
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs67 public UInt32 BufferSize; field in SevenZip.LzmaBench.CBenchRandomGenerator
76 BufferSize = bufferSize; in Set()
96 while (Pos < BufferSize) in Generate()
113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++) in Generate()
279 crc.Update(rg.Buffer, 0, rg.BufferSize); in LzmaBenchmark()
289 MemoryStream inStream = new MemoryStream(rg.Buffer, 0, (int)rg.BufferSize); in LzmaBenchmark()
/external/clang/include/clang/AST/
DNestedNameSpecifier.h353 unsigned BufferSize; variable
361 : Representation(nullptr), Buffer(nullptr), BufferSize(0), in NestedNameSpecifierLocBuilder()
491 BufferSize = 0; in Clear()
500 return std::make_pair(Buffer, BufferSize); in getBuffer()
/external/opencv/cv/src/
Dcvoptflowlk.cpp123 int BufferSize; in icvCalcOpticalFlowLK_8u32fR() local
213 BufferSize = BufferHeight * BufferWidth; in icvCalcOpticalFlowLK_8u32fR()
215 II = (icvDerProduct *) cvAlloc( BufferSize * sizeof( icvDerProduct )); in icvCalcOpticalFlowLK_8u32fR()
216 WII = (icvDerProduct *) cvAlloc( BufferSize * sizeof( icvDerProduct )); in icvCalcOpticalFlowLK_8u32fR()
296 BufferAddress -= ((BufferAddress >= BufferSize) ? 0xffffffff : 0) & BufferSize; in icvCalcOpticalFlowLK_8u32fR()
489 addr -= ((addr >= BufferSize) ? 0xffffffff : 0) & BufferSize; in icvCalcOpticalFlowLK_8u32fR()
/external/e2fsprogs/lib/ext2fs/
Dnt_io.c211 ULONG BufferSize; member
1139 NtData->BufferSize = 1024; in nt_open()
1140 NtData->Buffer = malloc(NtData->BufferSize); in nt_open()
1280 NtData->BufferSize = channel->block_size; in nt_set_blksize()
1281 ASSERT(0 == (NtData->BufferSize % 512)); in nt_set_blksize()
1283 NtData->Buffer = malloc(NtData->BufferSize); in nt_set_blksize()
1336 if(Size <= NtData->BufferSize) in nt_read_blk()
1344 SizeToRead = NtData->BufferSize; in nt_read_blk()
1441 if(SizeToWrite >= NtData->BufferSize) in nt_write_blk()
1444 memcpy(NtData->Buffer, buf, NtData->BufferSize); in nt_write_blk()
/external/google-breakpad/src/client/windows/crash_generation/
Dminidump_generator.cc196 user_stream->BufferSize = static_cast<ULONG>(stream_.size()); in GetUserStream()
350 user_stream_array[0].BufferSize = sizeof(breakpad_info); in WriteMinidump()
391 user_stream_array[1].BufferSize = sizeof(MDRawAssertionInfo); in WriteMinidump()
402 user_stream_array[user_streams.UserStreamCount].BufferSize = in WriteMinidump()
403 additional_streams_->UserStreamArray[i].BufferSize; in WriteMinidump()
/external/llvm/lib/Target/AArch64/
DAArch64SchedA53.td35 // Modeling each pipeline as a ProcResource using the BufferSize = 0 since
38 def A53UnitALU : ProcResource<2> { let BufferSize = 0; } // Int ALU
39 def A53UnitMAC : ProcResource<1> { let BufferSize = 0; } // Int MAC
40 def A53UnitDiv : ProcResource<1> { let BufferSize = 0; } // Int Division
41 def A53UnitLdSt : ProcResource<1> { let BufferSize = 0; } // Load/Store
42 def A53UnitB : ProcResource<1> { let BufferSize = 0; } // Branch
43 def A53UnitFPALU : ProcResource<1> { let BufferSize = 0; } // FP ALU
44 def A53UnitFPMDS : ProcResource<1> { let BufferSize = 0; } // FP Mult/Div/Sqrt
/external/llvm/lib/Target/R600/
DSISchedule.td33 // BufferSize = 0 means the processors are in-order.
34 let BufferSize = 0 in {
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmsnamed.c347 char* Buffer, cmsUInt32Number BufferSize) in cmsMLUgetASCII() argument
369 if (BufferSize <= 0) return 0; in cmsMLUgetASCII()
372 if (BufferSize < ASCIIlen + 1) in cmsMLUgetASCII()
373 ASCIIlen = BufferSize - 1; in cmsMLUgetASCII()
392 wchar_t* Buffer, cmsUInt32Number BufferSize) in cmsMLUgetWide() argument
410 if (BufferSize <= 0) return 0; in cmsMLUgetWide()
413 if (BufferSize < StrLen + sizeof(wchar_t)) in cmsMLUgetWide()
414 StrLen = BufferSize - + sizeof(wchar_t); in cmsMLUgetWide()
/external/lzma/CPP/7zip/UI/Common/
DBench.cpp77 size_t BufferSize; member in CBenchBuffer
88 if (Buffer != 0 && BufferSize == bufferSize) in Alloc()
92 BufferSize = bufferSize; in Alloc()
117 while (pos < BufferSize) in Generate()
143 for (UInt32 i = 0; i < len && pos < BufferSize; i++, pos++) in Generate()
205 size_t curSize = BufferSize - Pos; in Write()
561 crc = CrcCalc(rg.Buffer, rg.BufferSize); in Init()
613 inStreamSpec->Init(rg.Buffer, rg.BufferSize); in Encode()
/external/llvm/include/llvm/Target/
DTargetSchedule.td123 // clock cycle relative to instruction dispatch. Setting BufferSize=0
128 // specified in WriteRes expire. Setting BufferSize=1 changes this to
135 // Use BufferSize = -1 for "issue ports" fed by a unified reservation
141 // Use BufferSize = 0 for resources that force "dispatch/issue
149 // Use BufferSize = 1 for in-order execution units. This is used for
154 // Use BufferSize > 1 for out-of-order executions units with a
159 // create two types of units, one with BufferSize=0 and one with
160 // BufferSize=1.
169 int BufferSize = -1;
186 int BufferSize = -1;
/external/mesa3d/src/egl/main/
Deglconfig.h47 EGLint BufferSize; member
95 ATTRIB_MAP(EGL_BUFFER_SIZE, BufferSize); in _eglOffsetOfConfig()

123