Home
last modified time | relevance | path

Searched refs:Length (Results 1 – 25 of 1740) sorted by relevance

12345678910>>...70

/third_party/libphonenumber/cpp/src/phonenumbers/
Dstringutil.cc213 lhs.append(cs, rhs.Length()); in operator +=()
220 result.reserve(s1.Length() + s2.Length() + 1); in StrCat()
231 result.reserve(s1.Length() + s2.Length() + s3.Length() + 1); in StrCat()
243 result.reserve(s1.Length() + s2.Length() + s3.Length() + s4.Length() + 1); in StrCat()
257 result.reserve(s1.Length() + s2.Length() + s3.Length() + s4.Length() + in StrCat()
258 s5.Length() + 1); in StrCat()
272 result.reserve(s1.Length() + s2.Length() + s3.Length() + s4.Length() + in StrCat()
273 s5.Length() + s6.Length() + 1); in StrCat()
289 result.reserve(s1.Length() + s2.Length() + s3.Length() + s4.Length() + in StrCat()
290 s5.Length() + s6.Length() + s7.Length() + 1); in StrCat()
[all …]
/third_party/e2fsprogs/tests/d_fallocate_bigalloc/
Dexpect.gz
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/PBQP/
DMath.h30 explicit Vector(unsigned Length) in Vector() argument
31 : Length(Length), Data(std::make_unique<PBQPNum []>(Length)) {} in Vector()
34 Vector(unsigned Length, PBQPNum InitVal) in Vector() argument
35 : Length(Length), Data(std::make_unique<PBQPNum []>(Length)) { in Vector()
36 std::fill(Data.get(), Data.get() + Length, InitVal); in Vector()
41 : Length(V.Length), Data(std::make_unique<PBQPNum []>(Length)) { in Vector()
42 std::copy(V.Data.get(), V.Data.get() + Length, Data.get()); in Vector()
47 : Length(V.Length), Data(std::move(V.Data)) { in Vector()
48 V.Length = 0; in Vector()
53 assert(Length != 0 && Data && "Invalid vector");
[all …]
/third_party/e2fsprogs/tests/d_fallocate/
Dexpect.gz
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringRef.h59 size_t Length = 0; variable
64 static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) { in compareMemory() argument
65 if (Length == 0) { return 0; } in compareMemory()
66 return ::memcmp(Lhs,Rhs,Length); in compareMemory()
83 : Data(Str), Length(Str ? ::strlen(Str) : 0) {} in StringRef()
88 : Data(data), Length(length) {} in StringRef()
93 : Data(Str.data()), Length(Str.length()) {} in StringRef()
105 iterator end() const { return Data + Length; } in end()
130 bool empty() const { return Length == 0; } in empty()
135 size_t size() const { return Length; } in size()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringRef.h67 size_t Length = 0; variable
71 static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) { in compareMemory() argument
72 if (Length == 0) { return 0; } in compareMemory()
73 return ::memcmp(Lhs,Rhs,Length); in compareMemory()
104 : Data(Str), Length(Str ? strLen(Str) : 0) {} in StringRef()
108 : Data(data), Length(length) {} in StringRef()
112 : Data(Str.data()), Length(Str.length()) {} in StringRef()
124 iterator end() const { return Data + Length; } in end()
147 bool empty() const { return Length == 0; } in empty()
151 size_t size() const { return Length; } in size()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DBinaryStreamRef.h30 Length = BorrowedImpl.getLength(); in BinaryStreamRefBase()
34 Optional<uint32_t> Length) in BinaryStreamRefBase() argument
36 ViewOffset(Offset), Length(Length) {} in BinaryStreamRefBase()
38 Optional<uint32_t> Length) in BinaryStreamRefBase() argument
39 : BorrowedImpl(&BorrowedImpl), ViewOffset(Offset), Length(Length) {} in BinaryStreamRefBase()
52 if (Length.hasValue()) in getLength()
53 return *Length; in getLength()
71 if (Result.Length.hasValue()) in drop_front()
72 *Result.Length -= N; in drop_front()
91 if (!Result.Length.hasValue()) in drop_back()
[all …]
/third_party/boringssl/src/crypto/poly1305/
Dpoly1305_tests.txt58 # Length 2048.
63 # Length 2049.
68 # Length 2050.
73 # Length 2051.
78 # Length 2052.
83 # Length 2053.
88 # Length 2054.
93 # Length 2055.
98 # Length 2056.
103 # Length 2057.
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DStringRef.cpp27 static int ascii_strncasecmp(const char *LHS, const char *RHS, size_t Length) { in ascii_strncasecmp() argument
28 for (size_t I = 0; I < Length; ++I) { in ascii_strncasecmp()
39 if (int Res = ascii_strncasecmp(Data, RHS.Data, std::min(Length, RHS.Length))) in compare_lower()
41 if (Length == RHS.Length) in compare_lower()
43 return Length < RHS.Length ? -1 : 1; in compare_lower()
48 return Length >= Prefix.Length && in startswith_lower()
49 ascii_strncasecmp(Data, Prefix.Data, Prefix.Length) == 0; in startswith_lower()
54 return Length >= Suffix.Length && in endswith_lower()
55 ascii_strncasecmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; in endswith_lower()
65 for (size_t I = 0, E = std::min(Length, RHS.Length); I != E; ++I) { in compare_numeric()
[all …]
DBinaryStreamReader.cpp92 size_t Length = FoundOffset - OriginalOffset; in readCString() local
94 if (auto EC = readFixedString(Dest, Length)) in readCString()
103 uint32_t Length = 0; in readWideString() local
111 ++Length; in readWideString()
116 if (auto EC = readArray(Dest, Length)) in readWideString()
122 Error BinaryStreamReader::readFixedString(StringRef &Dest, uint32_t Length) { in readFixedString() argument
124 if (auto EC = readBytes(Bytes, Length)) in readFixedString()
134 Error BinaryStreamReader::readStreamRef(BinaryStreamRef &Ref, uint32_t Length) { in readStreamRef() argument
135 if (bytesRemaining() < Length) in readStreamRef()
137 Ref = Stream.slice(Offset, Length); in readStreamRef()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DStringRef.cpp41 static int ascii_strncasecmp(const char *LHS, const char *RHS, size_t Length) { in ascii_strncasecmp() argument
42 for (size_t I = 0; I < Length; ++I) { in ascii_strncasecmp()
53 if (int Res = ascii_strncasecmp(Data, RHS.Data, std::min(Length, RHS.Length))) in compare_lower()
55 if (Length == RHS.Length) in compare_lower()
57 return Length < RHS.Length ? -1 : 1; in compare_lower()
62 return Length >= Prefix.Length && in startswith_lower()
63 ascii_strncasecmp(Data, Prefix.Data, Prefix.Length) == 0; in startswith_lower()
68 return Length >= Suffix.Length && in endswith_lower()
69 ascii_strncasecmp(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0; in endswith_lower()
79 for (size_t I = 0, E = std::min(Length, RHS.Length); I != E; ++I) { in compare_numeric()
[all …]
/third_party/boost/libs/units/test/
Dtest_custom_unit.cpp30 template<int Mass, int Length, int Time>
35 template<int Mass, int Length, int Time>
36 simple_unit<Mass, Length, Time> operator+(const simple_unit<Mass, Length, Time>&, in operator +() argument
37 const simple_unit<Mass, Length, Time>&) in operator +()
39 return simple_unit<Mass, Length, Time>(); in operator +()
42 template<int Mass, int Length, int Time>
43 simple_unit<Mass, Length, Time> operator-(const simple_unit<Mass, Length, Time>&, in operator -() argument
44 const simple_unit<Mass, Length, Time>&) in operator -()
46 return simple_unit<Mass, Length, Time>(); in operator -()
/third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/
DSliceBufferSafeHandleTest.cs45 origPayload.AsSpan().CopyTo(sliceBuffer.GetSpan(origPayload.Length)); in Complete_TailSizeZero()
46 sliceBuffer.Advance(origPayload.Length); in Complete_TailSizeZero()
59 var dest = sliceBuffer.GetSpan(origPayload.Length + 10); in Complete_TruncateTailSpace()
61 sliceBuffer.Advance(origPayload.Length); in Complete_TruncateTailSpace()
74 origPayload.AsSpan().CopyTo(sliceBuffer.GetSpan(origPayload.Length)); in SliceBufferIsReusable()
75 sliceBuffer.Advance(origPayload.Length); in SliceBufferIsReusable()
82 origPayload2.AsSpan().CopyTo(sliceBuffer.GetSpan(origPayload2.Length)); in SliceBufferIsReusable()
83 sliceBuffer.Advance(origPayload2.Length); in SliceBufferIsReusable()
99 Assert.IsTrue(destSpan.Length > 0); // some non-zero size memory is made available in SliceBuffer_SizeHintZero()
104 Assert.IsTrue(destMemory.Length > 0); in SliceBuffer_SizeHintZero()
[all …]
DDefaultDeserializationContextTest.cs72 Assert.AreEqual(origBuffer.Length, context.PayloadLength); in PayloadAsReadOnlySequence_SingleSegmentPayload()
76 Assert.AreEqual(origBuffer.Length, sequence.Length); in PayloadAsReadOnlySequence_SingleSegmentPayload()
77 Assert.AreEqual(origBuffer.Length, sequence.First.Length); in PayloadAsReadOnlySequence_SingleSegmentPayload()
92 int totalLen = origBuffer1.Length + origBuffer2.Length + origBuffer3.Length; in PayloadAsReadOnlySequence_MultiSegmentPayload()
101 Assert.AreEqual(totalLen, sequence.Length); in PayloadAsReadOnlySequence_MultiSegmentPayload()
133 Assert.AreEqual(0, payload.Length); in PayloadAsNewByteBuffer_ZeroSegmentPayload()
147 Assert.AreEqual(origBuffer.Length, context.PayloadLength); in PayloadAsNewByteBuffer_SingleSegmentPayload()
175 Assert.AreEqual(concatenatedOrigBuffers.Count, payload.Length); in PayloadAsNewByteBuffer_MultiSegmentPayload()
186 Assert.AreEqual(origBuffer.Length, context.PayloadLength); in GetPayloadMultipleTimesIsIllegal()
203 Assert.AreEqual(origBuffer.Length, context.PayloadLength); in ResetContextAndReinitialize()
[all …]
/third_party/e2fsprogs/tests/d_punch/
Dexpect18 Level Entries Logical Physical Length Flags
20 Level Entries Logical Physical Length Flags
28 Level Entries Logical Physical Length Flags
35 Level Entries Logical Physical Length Flags
39 Level Entries Logical Physical Length Flags
44 Level Entries Logical Physical Length Flags
48 Level Entries Logical Physical Length Flags
53 Level Entries Logical Physical Length Flags
58 Level Entries Logical Physical Length Flags
63 Level Entries Logical Physical Length Flags
[all …]
/third_party/e2fsprogs/tests/d_punch_bigalloc/
Dexpect20 Level Entries Logical Physical Length Flags
22 Level Entries Logical Physical Length Flags
30 Level Entries Logical Physical Length Flags
34 Level Entries Logical Physical Length Flags
38 Level Entries Logical Physical Length Flags
42 Level Entries Logical Physical Length Flags
47 Level Entries Logical Physical Length Flags
53 Level Entries Logical Physical Length Flags
59 Level Entries Logical Physical Length Flags
65 Level Entries Logical Physical Length Flags
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1write.data52 ASN.1 Write / Read Length #0 (Len = 0, short form)
55 ASN.1 Write / Read Length #1 (Len = 127, short form)
58 ASN.1 Write / Read Length #2 (Len = 127, buffer too small)
61 ASN.1 Write / Read Length #3 (Len = 128, long form)
64 ASN.1 Write / Read Length #4 (Len = 255, long form)
67 ASN.1 Write / Read Length #5 (Len = 255, buffer too small)
70 ASN.1 Write / Read Length #6 (Len = 258, byte order)
73 ASN.1 Write / Read Length #7 (Len = 65535, long form)
76 ASN.1 Write / Read Length #8 (Len = 65535, buffer too small)
79 ASN.1 Write / Read Length #9 (Len = 66051, byte order)
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf/
DByteString.cs101 public int Length property in Google.Protobuf.ByteString
103 get { return bytes.Length; }
111 get { return Length == 0; }
181 int capacity = stream.CanSeek ? checked((int) (stream.Length - stream.Position)) : 0; in FromStream()
188 …byte[] bytes = memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStr… in FromStream()
205 int capacity = stream.CanSeek ? checked((int) (stream.Length - stream.Position)) : 0; in FromStreamAsync()
214 …byte[] bytes = memoryStream.Length == memoryStream.Capacity ? memoryStream.GetBuffer() : memoryStr… in FromStreamAsync()
290 return encoding.GetString(bytes, 0, bytes.Length); in ToString()
349 if (lhs.bytes.Length != rhs.bytes.Length) in operator ==()
353 for (int i = 0; i < lhs.Length; i++) in operator ==()
[all …]
/third_party/skia/third_party/externals/sfntly/cpp/src/test/
Dbyte_array_test.cc36 b->resize(ba->Length()); in ReadByteArrayWithBuffer()
38 while (index < ba->Length()) { in ReadByteArrayWithBuffer()
48 b->resize(ba->Length()); in ReadByteArrayWithSlidingWindow()
51 while (index < ba->Length()) { in ReadByteArrayWithSlidingWindow()
61 for (int i = 0; i < ba1->Length(); ++i) { in ReadComparison()
67 int increments = std::max<int32_t>(ba1->Length() / 11, 1); in ReadComparison()
68 for (int buffer_size = 1; buffer_size < ba1->Length(); in ReadComparison()
81 for (int window_size = 1; window_size < ba1->Length(); in ReadComparison()
94 ByteArrayPtr fixed_copy = new MemoryByteArray(ba->Length()); in CopyTest()
96 EXPECT_EQ(ba->Length(), fixed_copy->Length()); in CopyTest()
[all …]
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/test/
Dbyte_array_test.cc36 b->resize(ba->Length()); in ReadByteArrayWithBuffer()
38 while (index < ba->Length()) { in ReadByteArrayWithBuffer()
48 b->resize(ba->Length()); in ReadByteArrayWithSlidingWindow()
51 while (index < ba->Length()) { in ReadByteArrayWithSlidingWindow()
61 for (int i = 0; i < ba1->Length(); ++i) { in ReadComparison()
67 int increments = std::max<int32_t>(ba1->Length() / 11, 1); in ReadComparison()
68 for (int buffer_size = 1; buffer_size < ba1->Length(); in ReadComparison()
81 for (int window_size = 1; window_size < ba1->Length(); in ReadComparison()
94 ByteArrayPtr fixed_copy = new MemoryByteArray(ba->Length()); in CopyTest()
96 EXPECT_EQ(ba->Length(), fixed_copy->Length()); in CopyTest()
[all …]
/third_party/grpc/tools/http2_interop/
Dframeheader.go24 Length int member
53 Length: int(b[0])<<16 | int(b[1])<<8 | int(b[2]),
63 buf := make([]byte, 9, 9+fh.Length)
65 if fh.Length > 0xFFFFFF || fh.Length < 0 {
66 return nil, fmt.Errorf("Invalid frame header length: %d", fh.Length)
72 buf[0], buf[1], buf[2] = byte(fh.Length>>16), byte(fh.Length>>8), byte(fh.Length)
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Buffers/
DArrayBufferWriter.cs103 public int Capacity => _buffer.Length;
108 public int FreeCapacity => _buffer.Length - _index;
118 Debug.Assert(_buffer.Length >= _index); in Clear()
140 if (_index > _buffer.Length - count) in Advance()
165 Debug.Assert(_buffer.Length > _index); in GetMemory()
188 Debug.Assert(_buffer.Length > _index); in GetSpan()
204 int growBy = Math.Max(sizeHint, _buffer.Length); in CheckAndResizeBuffer()
206 if (_buffer.Length == 0) in CheckAndResizeBuffer()
217 int newSize = checked(_buffer.Length + growBy); in CheckAndResizeBuffer()
/third_party/curl/tests/data/
Dtest203117 Content-Length: 27
27 Content-Length: 33
37 Content-Length: 29
48 Content-Length: 27
58 Content-Length: 33
68 Content-Length: 32
78 Content-Length: 27
88 Content-Length: 33
98 Content-Length: 29
109 Content-Length: 27
[all …]
Dtest128417 Content-Length: 0
24 Content-Length: 3
34 Content-Length: 0
39 Content-Length: 3
57 HTTP POST --digest with user-specified Content-Length header
59 # This test is to ensure 'Content-Length: 0' is sent while negotiating auth
60 # even when there is a user-specified Content-Length header.
63 -H "Content-Length: 11" -u auser:apasswd --digest -d "junkelijunk" http://%HOSTIP:%HTTPPORT/%TESTNU…
74 Content-Length: 0
82 Content-Length: 11
/third_party/node/benchmark/napi/function_args/
Dbinding.cc21 assert(args.Length() == 1 && args[0]->IsString()); in CallWithString()
22 if (args.Length() == 1 && args[0]->IsString()) { in CallWithString()
32 assert(args.Length() == 1 && args[0]->IsArray()); in CallWithArray()
33 if (args.Length() == 1 && args[0]->IsArray()) { in CallWithArray()
35 uint32_t length = array->Length(); in CallWithArray()
45 assert(args.Length() == 1 && args[0]->IsNumber()); in CallWithNumber()
46 if (args.Length() == 1 && args[0]->IsNumber()) { in CallWithNumber()
55 assert(args.Length() == 1 && args[0]->IsObject()); in CallWithObject()
56 if (args.Length() == 1 && args[0]->IsObject()) { in CallWithObject()
98 assert(args.Length() == 1 && args[0]->IsArrayBufferView()); in CallWithTypedarray()
[all …]

12345678910>>...70