Home
last modified time | relevance | path

Searched refs:buf (Results 1 - 25 of 118) sorted by relevance

12345

/arkcompiler/ets_runtime/ecmascript/regexp/
H A Dregexp_opcode.cpp98 RegExpOpCode *RegExpOpCode::GetRegExpOpCode(const DynChunk &buf, int pc) in GetRegExpOpCode() argument
100 uint8_t opCode = buf.GetU8(pc); in GetRegExpOpCode()
113 void RegExpOpCode::DumpRegExpOpCode(std::ostream &out, const DynChunk &buf) in DumpRegExpOpCode() argument
118 RegExpOpCode *byteCode = GetRegExpOpCode(buf, pc); in DumpRegExpOpCode()
119 pc = byteCode->DumpOpCode(out, buf, pc); in DumpRegExpOpCode()
120 } while (pc < buf.size_); in DumpRegExpOpCode()
123 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() argument
126 buf->EmitChar(GetOpCode()); in EmitOpCode()
127 buf->EmitChar(capture); in EmitOpCode()
128 return GetDynChunkfSize(*buf); in EmitOpCode()
131 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
138 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
146 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
153 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
161 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
168 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
175 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
182 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
189 UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const UpdateOpPara() argument
194 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
201 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
209 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
216 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
223 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
231 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
238 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
245 EmitOpCode(DynChunk *buf, uint32_t start, uint32_t min, uint32_t max) const EmitOpCode() argument
254 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
263 EmitOpCode(DynChunk *buf, uint32_t start, uint32_t min, uint32_t max) const EmitOpCode() argument
272 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
281 InsertOpCode(DynChunk *buf, uint32_t offset) const InsertOpCode() argument
288 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
295 InsertOpCode(DynChunk *buf, uint32_t offset) const InsertOpCode() argument
302 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
315 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
322 EmitOpCode(DynChunk *buf, uint32_t offset) const EmitOpCode() argument
329 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
336 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t start, uint32_t end) const InsertOpCode() argument
347 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
355 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
361 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
368 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
374 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
381 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
387 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
394 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
400 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
407 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
413 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
420 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
426 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
434 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
440 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
447 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
453 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
460 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
467 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
482 InsertOpCode(DynChunk *buf, const RangeSet &rangeSet) const InsertOpCode() argument
494 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
509 InsertOpCode(DynChunk *buf, const RangeSet &rangeSet) const InsertOpCode() argument
521 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
537 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
545 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
552 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
560 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
566 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
573 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
581 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
588 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
596 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
[all...]
H A Dregexp_opcode.h76 static RegExpOpCode *GetRegExpOpCode(const DynChunk &buf, int pcOffset);
78 static void DumpRegExpOpCode(std::ostream &out, const DynChunk &buf);
87 inline int GetDynChunkfSize(const DynChunk &buf) const in GetDynChunkfSize()
89 return buf.size_; in GetDynChunkfSize()
91 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0;
101 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const;
105 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
111 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const;
115 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
121 uint32_t EmitOpCode(DynChunk *buf, uint32_ in CharOpCode()
[all...]
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/
H A Dregexp_opcode.cpp92 RegExpOpCode *RegExpOpCode::GetRegExpOpCode(const DynChunk &buf, int pc) in GetRegExpOpCode() argument
94 uint8_t opCode = buf.GetU8(pc); in GetRegExpOpCode()
107 void RegExpOpCode::DumpRegExpOpCode(std::ostream &out, const DynChunk &buf) in DumpRegExpOpCode() argument
112 RegExpOpCode *byteCode = GetRegExpOpCode(buf, pc); in DumpRegExpOpCode()
113 pc = byteCode->DumpOpCode(out, buf, pc); in DumpRegExpOpCode()
114 } while (pc < buf.size_); in DumpRegExpOpCode()
117 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() argument
120 buf->EmitChar(GetOpCode()); in EmitOpCode()
121 buf->EmitChar(capture); in EmitOpCode()
122 return GetDynChunkfSize(*buf); in EmitOpCode()
125 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
132 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
140 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
147 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
155 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
162 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
169 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
176 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
183 UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const UpdateOpPara() argument
188 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
195 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
203 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
210 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
218 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
225 EmitOpCode(DynChunk *buf, uint32_t start, uint32_t min, uint32_t max) const EmitOpCode() argument
234 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
243 EmitOpCode(DynChunk *buf, uint32_t start, uint32_t min, uint32_t max) const EmitOpCode() argument
252 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
261 InsertOpCode(DynChunk *buf, uint32_t offset) const InsertOpCode() argument
268 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
275 InsertOpCode(DynChunk *buf, uint32_t offset) const InsertOpCode() argument
282 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
295 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
302 EmitOpCode(DynChunk *buf, uint32_t offset) const EmitOpCode() argument
309 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
316 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t start, uint32_t end) const InsertOpCode() argument
327 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
335 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
341 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
348 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
354 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
361 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
367 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
374 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
380 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
387 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
393 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
400 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
406 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
414 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
420 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
427 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
433 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
440 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
447 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
462 InsertOpCode(DynChunk *buf, const RangeSet &rangeSet) const InsertOpCode() argument
474 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
489 InsertOpCode(DynChunk *buf, const RangeSet &rangeSet) const InsertOpCode() argument
501 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
509 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
516 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
524 EmitOpCode(DynChunk *buf, [[maybe_unused]] uint32_t para) const EmitOpCode() argument
530 DumpOpCode(std::ostream &out, [[maybe_unused]] const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
537 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
545 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
552 EmitOpCode(DynChunk *buf, uint32_t para) const EmitOpCode() argument
560 DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const DumpOpCode() argument
[all...]
H A Dregexp_opcode.h73 static RegExpOpCode *GetRegExpOpCode(const DynChunk &buf, int pcOffset);
75 static void DumpRegExpOpCode(std::ostream &out, const DynChunk &buf);
84 inline int GetDynChunkfSize(const DynChunk &buf) const in GetDynChunkfSize()
86 return buf.size_; in GetDynChunkfSize()
88 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0;
98 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const;
102 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
108 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const;
112 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
118 uint32_t EmitOpCode(DynChunk *buf, uint32_ in CharOpCode()
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/tools/generate-es-checked/src/
H A Dvalue_dumper.rb71 def dump_value(buf, rb_obj, exp_type)
74 buf << "Array.of<" << ESChecker::Types::dump(exp_type[:el]) << ">("
77 buf << ", "
79 dump_value(buf, v, exp_type[:el])
81 buf << ")"
83 buf << "["
86 buf << ", "
88 dump_value buf, v[0], v[1]
90 buf << "] as " << ESChecker::Types::dump(exp_type)
92 buf << "#{rb_ob
[all...]
H A Dtypes.rb29 def self.dump(t, buf: "")
32 buf << "Array<"
33 dump t[:el], buf: buf
34 buf << ">"
36 buf << "["
39 buf << ", "
41 dump t, buf: buf
43 buf << "]"
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
H A Darray_native_test_2.cpp31 ets_boolean buf[10U] = {0}; in TEST_F() local
39 env_->GetBooleanArrayRegion(arr, -1, 2_I, buf); in TEST_F()
47 env_->GetBooleanArrayRegion(arr, 0, -2_I, buf); in TEST_F()
55 env_->GetBooleanArrayRegion(arr, 2_I, 9_I, buf); in TEST_F()
66 ets_byte buf[10U] = {0}; in TEST_F() local
74 env_->GetByteArrayRegion(arr, -1, 2_I, buf); in TEST_F()
82 env_->GetByteArrayRegion(arr, 0, -2_I, buf); in TEST_F()
90 env_->GetByteArrayRegion(arr, 2_I, 9_I, buf); in TEST_F()
101 ets_char buf[10U] = {0}; in TEST_F() local
109 env_->GetCharArrayRegion(arr, -1, 2_I, buf); in TEST_F()
136 ets_short buf[10U] = {0}; TEST_F() local
171 ets_int buf[10U] = {0}; TEST_F() local
206 ets_long buf[10U] = {0}; TEST_F() local
241 ets_float buf[10U] = {0}; TEST_F() local
276 ets_double buf[10U] = {0}; TEST_F() local
311 ets_boolean buf[10U] = {0}; TEST_F() local
329 ets_byte buf[10U] = {0}; TEST_F() local
347 ets_char buf[10U] = {0}; TEST_F() local
365 ets_short buf[10U] = {0}; TEST_F() local
383 ets_int buf[10U] = {0}; TEST_F() local
401 ets_long buf[10U] = {0}; TEST_F() local
419 ets_float buf[10U] = {0}; TEST_F() local
437 ets_double buf[10U] = {0}; TEST_F() local
[all...]
H A Darray_native_test.cpp83 ets_boolean *buf = env_->PinBooleanArray(array); in TEST_F() local
84 ASSERT_NE(buf, nullptr); in TEST_F()
85 std::vector<ets_boolean> res1 = {buf, buf + length}; in TEST_F()
122 ets_byte *buf = env_->PinByteArray(array); in TEST_F() local
123 ASSERT_NE(buf, nullptr); in TEST_F()
124 std::vector<ets_byte> res1 = {buf, buf + length}; in TEST_F()
161 ets_char *buf = env_->PinCharArray(array); in TEST_F() local
162 ASSERT_NE(buf, nullpt in TEST_F()
200 ets_short *buf = env_->PinShortArray(array); TEST_F() local
239 ets_int *buf = env_->PinIntArray(array); TEST_F() local
278 ets_long *buf = env_->PinLongArray(array); TEST_F() local
317 ets_float *buf = env_->PinFloatArray(array); TEST_F() local
356 ets_double *buf = env_->PinDoubleArray(array); TEST_F() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Descompat_ArrayBuffer.cpp42 EtsHandle<EtsArrayBuffer> buf(coro, reinterpret_cast<EtsArrayBuffer *>(EtsObject::Create(coro, arraybufClass))); in EtsArrayBufferFrom()
43 if (UNLIKELY(buf.GetPtr() == nullptr)) { in EtsArrayBufferFrom()
47 buf->SetByteLength(byteLength); in EtsArrayBufferFrom()
49 buf->SetData(coro, data); in EtsArrayBufferFrom()
50 if (UNLIKELY(buf->GetData() == nullptr)) { in EtsArrayBufferFrom()
53 std::copy_n(array->GetData<EtsByte>(), byteLength, buf->GetData()->GetData<EtsByte>()); in EtsArrayBufferFrom()
54 return buf.GetPtr(); in EtsArrayBufferFrom()
/arkcompiler/toolchain/websocket/
H A Dnetwork.cpp33 bool Recv(int32_t client, char* buf, size_t totalLen, int32_t flags) in Recv() argument
38 while ((len = recv(client, buf + recvLen, totalLen - recvLen, flags)) < 0 && in Recv()
51 bool Recv(int32_t client, uint8_t* buf, size_t totalLen, int32_t flags) in Recv() argument
53 return Recv(client, reinterpret_cast<char *>(buf), totalLen, flags); in Recv()
61 bool Send(int32_t client, const char* buf, size_t totalLen, int32_t flags) in Send() argument
65 ssize_t len = send(client, buf + sendLen, totalLen - sendLen, flags); in Send()
75 uint64_t NetToHostLongLong(uint8_t* buf, uint32_t len) in NetToHostLongLong() argument
79 result |= buf[i]; in NetToHostLongLong()
H A Dnetwork.h25 bool Recv(int32_t client, char* buf, size_t totalLen, int32_t flags);
27 bool Recv(int32_t client, uint8_t* buf, size_t totalLen, int32_t flags);
31 bool Send(int32_t client, const char* buf, size_t totalLen, int32_t flags);
33 uint64_t NetToHostLongLong(uint8_t* buf, uint32_t len);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
H A Dmpl_logging.cpp44 char buf[kMaxLogLen]; in EmitLogForUser() local
45 int len = snprintf_s(buf, kMaxLogLen, kMaxLogLen - 1, "%s %02d: ", kLongLogLevels[ll], num); in EmitLogForUser()
53 int eNum = vsnprintf_s(buf + len, kMaxLogLen - len, static_cast<size_t>(kMaxLogLen - len - 1), fmt, l); in EmitLogForUser()
61 std::cerr << buf << '\n'; in EmitLogForUser() local
74 char buf[kMaxLogLen]; in EmitErrorMessage() local
76 int len = snprintf_s(buf, kMaxLogLen, kMaxLogLen - 1, "CHECK/CHECK_FATAL failure: %s at [%s:%d] ", cond.c_str(), in EmitErrorMessage()
80 int len = snprintf_s(buf, kMaxLogLen, kMaxLogLen - 1, "Tid(%d): CHECK/CHECK_FATAL failure: %s at [%s:%d] ", tid, in EmitErrorMessage()
89 int eNum = vsnprintf_s(buf + len, kMaxLogLen - len, static_cast<size_t>(kMaxLogLen - len - 1), fmt, l); in EmitErrorMessage()
96 std::cerr << buf; in EmitErrorMessage() local
/arkcompiler/runtime_core/static_core/tests/fuzztest/openpandafileorzip_fuzzer/
H A Dopenpandafileorzip_fuzzer.cpp27 std::vector<uint8_t> buf(data, data + size); in OpenPandaFileOrZipFuzzTest()
29 ark::CreateOrAddFileIntoZip(uncompress_zip_filename, filename1, &buf, APPEND_STATUS_CREATE, Z_NO_COMPRESSION); in OpenPandaFileOrZipFuzzTest()
31 ark::CreateOrAddFileIntoZip(uncompress_zip_filename, filename2, &buf, APPEND_STATUS_ADDINZIP, Z_NO_COMPRESSION); in OpenPandaFileOrZipFuzzTest()
39 ark::CreateOrAddFileIntoZip(uncompress_zip_filename, filename1, &buf, APPEND_STATUS_CREATE, Z_BEST_COMPRESSION); in OpenPandaFileOrZipFuzzTest()
40 ret2 = ark::CreateOrAddFileIntoZip(uncompress_zip_filename, filename2, &buf, APPEND_STATUS_ADDINZIP, in OpenPandaFileOrZipFuzzTest()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_string_builder.cpp78 auto *buf = EtsObjectArray::FromCoreType(sb->GetFieldObject(SB_BUFFER_OFFSET)->GetCoreType()); in AppendCharArrayToBuffer() local
80 // Check the case of the buf overflow in AppendCharArrayToBuffer()
81 if (index >= buf->GetLength()) { in AppendCharArrayToBuffer()
84 EtsHandle<EtsObjectArray> bufHandle(coroutine, buf); in AppendCharArrayToBuffer()
86 buf = ReallocateBuffer(bufHandle, GetNewBufferLength(bufHandle->GetLength(), 1U)); in AppendCharArrayToBuffer()
91 sb->SetFieldObject(SB_BUFFER_OFFSET, EtsObject::FromCoreType(buf->GetCoreType())); in AppendCharArrayToBuffer()
94 // Append array to the buf in AppendCharArrayToBuffer()
95 buf->Set(index, EtsObject::FromCoreType(arr->GetCoreType())); in AppendCharArrayToBuffer()
123 // All strings in the buf are MUtf8 in ReconstructStringAsMUtf8()
149 // Some strings in the buf ar in ReconstructStringAsUtf16()
261 auto *buf = EtsObjectArray::FromCoreType(sb->GetFieldObject(SB_BUFFER_OFFSET)); StringBuilderAppendString() local
310 auto *buf = EtsObjectArray::FromCoreType(sb->GetFieldObject(SB_BUFFER_OFFSET)); StringBuilderAppendStringsChecked() local
393 auto *buf = EtsObjectArray::FromCoreType(sb->GetFieldObject(SB_BUFFER_OFFSET)); StringBuilderAppendStringsChecked() local
491 auto *buf = EtsObjectArray::FromCoreType(sb->GetFieldObject(SB_BUFFER_OFFSET)); StringBuilderAppendStringsChecked() local
693 auto *buf = EtsObjectArray::FromCoreType(sbHandle->GetFieldObject(SB_BUFFER_OFFSET)->GetCoreType()); StringBuilderToString() local
[all...]
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dfile.h40 Expected<size_t, Error> Read(void *buf, size_t n) const in Read() argument
42 auto res = _read(fd_, buf, n); in Read()
49 bool ReadAll(void *buf, size_t n) const in ReadAll() argument
51 auto res = Read(buf, n); in ReadAll()
59 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write() argument
61 auto res = _write(fd_, buf, n); in Write()
68 bool WriteAll(const void *buf, size_t n) const in WriteAll() argument
70 auto res = Write(buf, n); in WriteAll()
/arkcompiler/runtime_core/libziparchive/tests/
H A Dlibziparchive_tests.cpp45 static void GenerateZipfile(const char *data, const char *archivename, int N, char *buf, char *archive_filename, int &i, in GenerateZipfile() argument
61 (void)sprintf_s(buf, MAX_BUFFER_SIZE, "%d %s %d", (N - 1) - i, data, i); in GenerateZipfile()
63 CreateOrAddFileIntoZip(archivename, archive_filename, buf, strlen(buf) + 1, APPEND_STATUS_ADDINZIP, level); in GenerateZipfile()
71 (void)sprintf_s(buf, MAX_BUFFER_SIZE, "%d %s %d", N, data, N); in GenerateZipfile()
72 ret = CreateOrAddFileIntoZip(archivename, "directory/indirectory.txt", buf, strlen(buf) + 1, APPEND_STATUS_ADDINZIP, in GenerateZipfile()
141 static void UnzipFileCheckTxt(const char *archivename, char *filename, const char *data, int N, char *buf, int &ret, in UnzipFileCheckTxt() argument
146 (void)sprintf_s(buf, MAX_BUFFER_SIZE, "%d %s %d", (N - 1) - i, data, i); in UnzipFileCheckTxt()
188 ASSERT_EQ(uncompressed_length, strlen(buf) in UnzipFileCheckTxt()
373 UnzipFileCheckInDirectory(const char *archivename, char *filename, const char *data, int N, char *buf, int &ret, int level = Z_BEST_COMPRESSION) UnzipFileCheckInDirectory() argument
525 char buf[MAX_BUFFER_SIZE]; HWTEST() local
602 char buf[MAX_BUFFER_SIZE]; HWTEST() local
657 char buf[MAX_BUFFER_SIZE]; HWTEST() local
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/
H A Dets_intrinsics_helpers.cpp413 void GetBase(FpType d, int digits, int *decpt, Span<char> buf) in GetBase() argument
416 auto ret = snprintf_s(buf.begin(), buf.size(), buf.size() - 1, "%.*e", digits - 1, d); in GetBase()
421 char *end = buf.begin() + ret; in GetBase()
424 char *ePos = buf.begin() + digits + positive; in GetBase()
446 int GetBaseFast([[maybe_unused]] FpType d, int *decpt, Span<char> buf) in GetBaseFast() argument
451 auto ret = std::to_chars(buf.begin(), buf.end(), d, std::chars_format::scientific); in GetBaseFast()
463 auto from = std::find(buf in GetBaseFast()
480 GetBaseBinarySearch(FpType d, int *decpt, Span<char> buf) GetBaseBinarySearch() argument
509 RecheckGetMinimumDigits(FpType d, Span<char> buf) RecheckGetMinimumDigits() argument
521 GetMinimumDigits(FpType d, int *decpt, Span<char> buf) GetMinimumDigits() argument
[all...]
/arkcompiler/runtime_core/static_core/tests/fuzztest/openpandafile_fuzzer/
H A Dopenpandafile_fuzzer.cpp28 std::vector<uint8_t> buf(data, data + size); in OpenPandaFileFuzzTest()
29 int ret1 = ark::CreateOrAddFileIntoZip(zip_filename1, filename1, &buf, APPEND_STATUS_CREATE, Z_BEST_COMPRESSION); in OpenPandaFileFuzzTest()
30 int ret2 = ark::CreateOrAddFileIntoZip(zip_filename1, filename2, &buf, APPEND_STATUS_ADDINZIP, Z_BEST_COMPRESSION); in OpenPandaFileFuzzTest()
37 int ret3 = ark::CreateOrAddFileIntoZip(zip_filename2, filename1, buf, APPEND_STATUS_CREATE, Z_BEST_COMPRESSION); in OpenPandaFileFuzzTest()
/arkcompiler/runtime_core/platforms/unix/libpandabase/
H A Dfile.h51 Expected<size_t, Error> Read(void *buf, size_t n) const in Read() argument
53 ssize_t res = read(fd_, buf, n); in Read()
60 bool ReadAll(void *buf, size_t n) const in ReadAll() argument
62 auto res = Read(buf, n); in ReadAll()
70 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write() argument
72 ssize_t res = write(fd_, buf, n); in Write()
79 bool WriteAll(const void *buf, size_t n) const in WriteAll() argument
81 auto res = Write(buf, n); in WriteAll()
H A Dproperty.cpp27 char buf[PROP_VALUE_MAX] = {}; in GetPropertyBuffer() local
28 if (__system_property_get(ark_prop, buf) > 0) { in GetPropertyBuffer()
29 out = buf; in GetPropertyBuffer()
/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dfile.h44 Expected<size_t, Error> Read(void *buf, size_t n) const in Read() argument
46 auto res = _read(fd_, buf, n); in Read()
53 bool ReadAll(void *buf, size_t n) const in ReadAll() argument
55 auto res = Read(buf, n); in ReadAll()
63 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write() argument
65 auto res = _write(fd_, buf, n); in Write()
72 bool WriteAll(const void *buf, size_t n) const in WriteAll() argument
74 auto res = Write(buf, n); in WriteAll()
/arkcompiler/runtime_core/static_core/libziparchive/tests/
H A Dlibziparchive_tests.cpp71 char buf[MAX_BUFFER_SIZE]; in GenerateZipfile() local
78 (void)sprintf_s(buf, sizeof(buf), "%u %s %u", (n - 1) - i, data, i); in GenerateZipfile()
80 std::vector<uint8_t> fillerData(buf, buf + strlen(buf) + 1); in GenerateZipfile()
90 (void)sprintf_s(buf, sizeof(buf), "%u %s %u", n, data, n); in GenerateZipfile()
92 std::vector<uint8_t> fillerData(buf, buf in GenerateZipfile()
194 ExtractFile(ZipArchiveHandle &zipfile, FILE *myfile, uint32_t uncompressedLength, char *buf) ExtractFile() argument
287 char buf[MAX_BUFFER_SIZE]; UnzipFileCheckTxt() local
392 char buf[MAX_BUFFER_SIZE]; UnzipFileCheckInDirectory() local
[all...]
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dproperty.cpp27 char buf[PROP_VALUE_MAX] = {}; in GetPropertyBuffer() local
28 if (__system_property_get(arkProp, buf) > 0) { in GetPropertyBuffer()
29 out = buf; in GetPropertyBuffer()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_number_test.cpp465 CVector<uint8_t> buf; in HWTEST_F_L0() local
470 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
473 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
476 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
479 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
482 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
485 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
488 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
491 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
496 sp = EcmaStringAccessor(str).ToUtf8Span(buf); in HWTEST_F_L0()
547 CVector<uint8_t> buf; HWTEST_F_L0() local
[all...]
/arkcompiler/toolchain/common/
H A Dlog_wrapper.cpp64 char buf[MAX_BUFFER_SIZE]; in PrintLog() local
65 if (vsnprintf_s(buf, sizeof(buf), sizeof(buf) - 1, formatted.c_str(), args) < 0 && errno == EINVAL) { in PrintLog()
99 printf("%s %s\r\n", timeBuf, buf); in PrintLog()

Completed in 14 milliseconds

12345