Home
last modified time | relevance | path

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

12345678910>>...66

/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/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-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 …]
DArrayRef.h46 size_type Length; variable
53 /*implicit*/ ArrayRef() : Data(nullptr), Length(0) {} in ArrayRef()
56 /*implicit*/ ArrayRef(NoneType) : Data(nullptr), Length(0) {} in ArrayRef()
60 : Data(&OneElt), Length(1) {} in ArrayRef()
64 : Data(data), Length(length) {} in ArrayRef()
68 : Data(begin), Length(end - begin) {} in ArrayRef()
75 : Data(Vec.data()), Length(Vec.size()) { in ArrayRef()
81 : Data(Vec.data()), Length(Vec.size()) {} in ArrayRef()
86 : Data(Arr.data()), Length(N) {} in ArrayRef()
90 /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {} in ArrayRef()
[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/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/mesa3d/src/gallium/drivers/r300/compiler/tests/
Drc_test_helpers.c63 int Length; member
154 tokens.Negate.Length = match_length(matches, 1); in init_rc_normal_src()
156 tokens.Abs.Length = match_length(matches, 2); in init_rc_normal_src()
158 tokens.File.Length = match_length(matches, 3); in init_rc_normal_src()
160 tokens.Index.Length = match_length(matches, 4); in init_rc_normal_src()
162 tokens.Swizzle.Length = match_length(matches, 5); in init_rc_normal_src()
165 if (tokens.Negate.Length > 0) { in init_rc_normal_src()
170 if (tokens.Abs.Length > 0) { in init_rc_normal_src()
175 if (!strncmp(tokens.File.String, "temp", tokens.File.Length)) { in init_rc_normal_src()
177 } else if (!strncmp(tokens.File.String, "input", tokens.File.Length)) { in init_rc_normal_src()
[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 …]
DWritingPrimitives.cs67 if (buffer.Length - state.position >= length) in WriteFloat()
170 if (buffer.Length - state.position >= length) in WriteString()
172 if (length == value.Length) // Must be all ASCII... in WriteString()
194 … bytesUsed = Utf8Encoding.GetBytes(sourceChars, source.Length, destinationBytes, buffer.Length); in WriteString()
218 WriteLength(ref buffer, ref state, value.Length); in WriteBytes()
292 if (value < 128 && state.position < buffer.Length) in WriteRawVarint32()
299 while (state.position < buffer.Length) in WriteRawVarint32()
325 if (value < 128 && state.position < buffer.Length) in WriteRawVarint64()
332 while (state.position < buffer.Length) in WriteRawVarint64()
358 if (state.position + length > buffer.Length) in WriteRawLittleEndian32()
[all …]
/third_party/curl/tests/data/
Dtest203118 Content-Length: 27
28 Content-Length: 33
38 Content-Length: 29
49 Content-Length: 27
59 Content-Length: 33
69 Content-Length: 32
79 Content-Length: 27
89 Content-Length: 33
99 Content-Length: 29
110 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
Dtest202822 Content-Length: 27
33 Content-Length: 29
45 Content-Length: 27
56 Content-Length: 33
66 Content-Length: 32
76 Content-Length: 27
87 Content-Length: 29
99 Content-Length: 27
110 Content-Length: 33
120 Content-Length: 29
[all …]
Dtest202522 Content-Length: 29
34 Content-Length: 27
45 Content-Length: 33
55 Content-Length: 32
65 Content-Length: 29
77 Content-Length: 27
88 Content-Length: 33
98 Content-Length: 29
110 Content-Length: 27
121 Content-Length: 33
[all …]
Dtest206817 Content-Length: 0
24 Content-Length: 3
34 Content-Length: 0
39 Content-Length: 3
57 HTTP POST --digest with SHA-512-256, userhash=false and 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
Dtest206917 Content-Length: 0
24 Content-Length: 3
34 Content-Length: 0
39 Content-Length: 3
57 HTTP POST --digest with SHA-256, userhash=true and 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
Dtest206717 Content-Length: 0
24 Content-Length: 3
34 Content-Length: 0
39 Content-Length: 3
57 HTTP POST --digest with SHA256 and 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
Dtest128517 Content-Length: 0
24 Content-Length: 3
34 Content-Length: 0
39 Content-Length: 3
57 HTTP PUT --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: 85" -u auser:apasswd --digest -T %LOGDIR/put%TESTNUMBER http://%HOSTIP:%HTTPPOR…
80 Content-Length: 0
87 Content-Length: 85
Dtest203034 Content-Length: 27
45 Content-Length: 33
55 Content-Length: 29
67 Content-Length: 27
78 Content-Length: 32
88 Content-Length: 27
99 Content-Length: 33
109 Content-Length: 29
121 Content-Length: 27
132 Content-Length: 29
[all …]
Dtest202922 Content-Length: 27
33 Content-Length: 33
43 Content-Length: 29
55 Content-Length: 32
65 Content-Length: 27
76 Content-Length: 33
86 Content-Length: 29
98 Content-Length: 29
110 Content-Length: 32
119 Content-Length: 33
[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/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DDWARFEmitter.cpp64 static void writeInitialLength(const DWARFYAML::InitialLength &Length, in writeInitialLength() argument
66 writeInteger((uint32_t)Length.TotalLength, OS, IsLittleEndian); in writeInitialLength()
67 if (Length.isDWARF64()) in writeInitialLength()
68 writeInteger((uint64_t)Length.TotalLength64, OS, IsLittleEndian); in writeInitialLength()
97 writeInitialLength(Range.Length, OS, DI.IsLittleEndian); in EmitDebugAranges()
110 writeVariableSizedInteger(Descriptor.Length, Range.AddrSize, OS, in EmitDebugAranges()
120 writeInitialLength(Sect.Length, OS, IsLittleEndian); in EmitPubSection()
141 writeInitialLength(CU.Length, OS, DebugInfo.IsLittleEndian); in onStartCompileUnit()
209 encodeULEB128(File.Length, OS); in EmitFileEntry()
214 writeInitialLength(LineTable.Length, OS, DI.IsLittleEndian); in EmitDebugLine()
[all …]
/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 …]
/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()

12345678910>>...66