Home
last modified time | relevance | path

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

123

/external/clang/lib/AST/
DNestedNameSpecifier.cpp436 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, in Append() argument
441 if (BufferSize + (End - Start) > BufferCapacity) { in Append()
445 (unsigned)(BufferSize + (End - Start))); in Append()
448 memcpy(NewBuffer, Buffer, BufferSize); in Append()
455 memcpy(Buffer + BufferSize, Start, End - Start); in Append()
456 BufferSize += End-Start; in Append()
461 unsigned &BufferSize, unsigned &BufferCapacity) { in SaveSourceLocation() argument
465 Buffer, BufferSize, BufferCapacity); in SaveSourceLocation()
469 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, in SavePointer() argument
473 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.h51 size_t BufferSize; variable
76 TheStream->write(Cur, BufferArray + BufferSize - Cur); in flushBuffer()
111 OwnsStream(Owns), BufferSize(BuffSize), BufferArray(nullptr), in raw_ostream()
113 if (BufferSize != 0) in raw_ostream()
114 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/tpm2/
DTPMCmdp.c148 Signal_Hash_Data(input.BufferSize, input.Buffer); in _rpc__Signal_Hash_Data()
179 response->BufferSize = 0; in _rpc__Send_Command()
185 ExecuteCommand(request.BufferSize, request.Buffer, in _rpc__Send_Command()
186 &response->BufferSize, &response->Buffer); in _rpc__Send_Command()
DTcpServer.c485 InBuffer.BufferSize = length; in TpmServer()
496 InBuffer.BufferSize = length; in TpmServer()
497 OutBuffer.BufferSize = MAX_BUFFER; in TpmServer()
501 if(InBuffer.BufferSize > CommandResponseSizes.largestCommandSize) in TpmServer()
503 CommandResponseSizes.largestCommandSize = InBuffer.BufferSize; in TpmServer()
510 if(OutBuffer.BufferSize > CommandResponseSizes.largestResponseSize) in TpmServer()
513 = OutBuffer.BufferSize; in TpmServer()
519 OutBuffer.BufferSize); in TpmServer()
DTpmTcpProtocol.h49 unsigned long BufferSize; member
55 uint32_t BufferSize; member
/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
/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/llvm/include/llvm/MC/
DMCSchedule.h45 int BufferSize; member
49 && BufferSize == Other.BufferSize;
/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/selinux/libselinux/src/
Dsha1.c150 uint32_t BufferSize in Sha1Update() argument
157 if( (Context->Count[0] += BufferSize << 3) < (BufferSize << 3) ) in Sha1Update()
162 Context->Count[1] += (BufferSize >> 29); in Sha1Update()
163 if( (j + BufferSize) > 63 ) in Sha1Update()
168 for( ; i + 63 < BufferSize; i += 64 ) in Sha1Update()
179 memcpy( &Context->Buffer[j], &((uint8_t*)Buffer)[i], BufferSize - i ); in Sha1Update()
/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/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/s3/
Dtest_key.py171 k.BufferSize = 2
210 k.BufferSize = 2
229 k.BufferSize = 2
248 k.BufferSize = 2
267 k.BufferSize = 2
286 k.BufferSize = 2
305 k.BufferSize = 2
324 k.BufferSize = 2
343 k.BufferSize = 2
/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/pdfium/third_party/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/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;

123