/commonlibrary/ets_utils/js_api_module/buffer/src/ |
D | js_buffer.ts | 206 writeString(value: string, offset: number, length: number, encoding: string): number; 208 fillString(value: string, offset: number, end: number, encoding: string): undefined; 209 fillNumbers(value: number[], offset: number, end: number): undefined; 210 fillBuffer(value: NativeBuffer, offset: number, end: number): undefined; 211 writeInt32BE(value: number, offset: number): number; 213 writeInt32LE(value: number, offset: number): number; 215 writeUInt32BE(value: number, offset: number): number; 217 writeUInt32LE(value: number, offset: number): number; 221 set(index: number, value: number): undefined; 227 indexOf(value: string, byteOffset: number, encoding: string, isReverse: boolean): number; [all …]
|
/commonlibrary/ets_utils/js_util_module/container/hashset/ |
D | js_hashset.ts | 33 value: T | undefined; 38 set(target: HashSet<T>, p: string, value: string): boolean { 40 target[p] = value; 68 has(value: T): boolean { 70 return this.hasKey(value); 72 add(value: T): boolean { 74 if (this.has(value)) { 77 return this.put(value); 79 remove(value: T): boolean { 81 if (this.removeMember(value) !== undefined) { [all …]
|
/commonlibrary/ets_utils/js_concurrent_module/common/helper/ |
D | napi_helper.cpp | 23 bool NapiHelper::IsString(napi_value value) in IsString() argument 25 auto valNative = reinterpret_cast<NativeValue*>(value); in IsString() 29 bool NapiHelper::IsNotUndefined(napi_value value) in IsNotUndefined() argument 31 auto valNative = reinterpret_cast<NativeValue*>(value); in IsNotUndefined() 35 bool NapiHelper::IsArray(napi_value value) in IsArray() argument 37 auto valNative = reinterpret_cast<NativeValue*>(value); in IsArray() 47 bool NapiHelper::IsArrayBuffer(napi_value value) in IsArrayBuffer() argument 49 auto valNative = reinterpret_cast<NativeValue*>(value); in IsArrayBuffer() 53 bool NapiHelper::IsNumber(napi_value value) in IsNumber() argument 55 auto valNative = reinterpret_cast<NativeValue*>(value); in IsNumber() [all …]
|
D | napi_helper.h | 26 static bool IsString(napi_value value); 27 static bool IsNotUndefined(napi_value value); 28 static bool IsArray(napi_value value); 30 static bool IsArrayBuffer(napi_value value); 31 static bool IsNumber(napi_value value); 32 static bool IsCallable(napi_env env, napi_value value); 33 static bool IsCallable(napi_env env, napi_ref value); 36 static void SetNamePropertyInGlobal(napi_env env, const char* name, napi_value value); 38 static bool IsObject(napi_value value); 39 static char* GetString(napi_env env, napi_value value); [all …]
|
/commonlibrary/ets_utils/js_util_module/container/treeset/ |
D | js_treeset.ts | 33 value: T | undefined; 38 set(target: TreeSet<T>, p: string, value: string): boolean { 40 target[p] = value; 72 has(value: T): boolean { 74 return this.constitute.getNode(value) !== undefined; 76 add(value: T): boolean { 78 this.constitute.addNode(value); 81 remove(value: T): boolean { 84 result = this.constitute.removeNode(value); 154 let value: T = firstNode.value; [all …]
|
/commonlibrary/ets_utils/js_util_module/container/hashmap/ |
D | js_hashmap.ts | 33 value: T | undefined; 38 set(target: HashMap<K, V>, p: string, value: string): boolean { 40 target[p] = value; 72 hasValue(value: V): boolean { 74 return super.values().indexOf(value) > -1; 86 this.put(memebers[i].key, memebers[i].value); 89 set(key: K, value: V): Object { 91 return super.put(key, value); 107 next: function (): { done: boolean, value: K } { 109 let value: K = undefined; variable [all …]
|
/commonlibrary/c_utils/base/include/ |
D | parcel.h | 285 bool WriteBool(bool value); 286 bool WriteInt8(int8_t value); 287 bool WriteInt16(int16_t value); 288 bool WriteInt32(int32_t value); 289 bool WriteInt64(int64_t value); 290 bool WriteUint8(uint8_t value); 291 bool WriteUint16(uint16_t value); 292 bool WriteUint32(uint32_t value); 293 bool WriteUint64(uint64_t value); 294 bool WriteFloat(float value); [all …]
|
/commonlibrary/rust/ylong_http/ylong_http/src/ |
D | headers.rs | 80 value: HeaderValue, field 98 pub fn from_raw_parts(name: HeaderName, value: HeaderValue) -> Self { in from_raw_parts() 99 Self { name, value } in from_raw_parts() 134 pub fn value(&self) -> &HeaderValue { in value() method 135 &self.value in value() 155 (self.name, self.value) in into_parts() 481 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() 482 Self::from_bytes(value.as_bytes()) in try_from() 499 fn try_from(value: &[u8]) -> Result<Self, Self::Error> { in try_from() 500 Self::from_bytes(value) in try_from() [all …]
|
/commonlibrary/ets_utils/js_util_module/container/treemap/ |
D | js_treemap.ts | 33 value: T | undefined; 38 set(target: TreeMap<K, V>, p: string, value: string): boolean { 40 target[p] = value; 76 hasValue(value: V): boolean { 78 return this.constitute.findNode(value) !== undefined; 87 return tempNode.value; 112 set(key: K, value: V): Object { 114 return this.constitute.addNode(key, value); 169 next: function (): { done: boolean, value: K } { 171 let value: K = undefined; [all …]
|
/commonlibrary/c_utils/base/src/ |
D | parcel.cpp | 394 bool Parcel::Write(T value) in Write() argument 399 *reinterpret_cast<T *>(data_ + writeCursor_) = value; in Write() 408 bool Parcel::WriteBool(bool value) in WriteBool() argument 410 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 413 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 415 return Write<bool>(value); in WriteBoolUnaligned() 418 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 420 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 423 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 425 return Write<int8_t>(value); in WriteInt8Unaligned() [all …]
|
/commonlibrary/ets_utils/js_api_module/buffer/ |
D | js_buffer.cpp | 155 void Buffer::WriteBE(int32_t value, uint32_t bytes) in WriteBE() argument 157 uint32_t uValue = static_cast<uint32_t>(value); in WriteBE() 166 void Buffer::WriteLE(int32_t value, uint32_t bytes) in WriteLE() argument 168 uint32_t uValue = static_cast<uint32_t>(value); in WriteLE() 199 void Buffer::WriteInt32BE(int32_t value, uint32_t offset) in WriteInt32BE() argument 202 WriteBE(value, 4); in WriteInt32BE() 215 void Buffer::WriteInt32LE(int32_t value, uint32_t offset) in WriteInt32LE() argument 218 WriteLE(value, 4); in WriteInt32LE() 231 void Buffer::WriteUInt32BE(int32_t value, uint32_t offset) in WriteUInt32BE() argument 234 WriteBE(value, 4); in WriteUInt32BE() [all …]
|
D | js_buffer.h | 51 void Set(uint32_t index, uint8_t value); 53 void WriteInt32BE(int32_t value, uint32_t offset); 54 void WriteInt32LE(int32_t value, uint32_t offset); 55 void WriteUInt32BE(int32_t value, uint32_t offset); 56 void WriteUInt32LE(int32_t value, uint32_t offset); 64 unsigned int WriteString(std::string value, unsigned int size); 65 unsigned int WriteString(std::string value, unsigned int offset, unsigned int length); 66 unsigned int WriteString(std::u16string value, unsigned int offset, unsigned int length); 67 …unsigned int WriteString(std::string value, unsigned int offset, unsigned int length, std::string … 79 void FillString(std::string value, unsigned int offset, unsigned int end, std::string encoding); [all …]
|
/commonlibrary/ets_utils/js_util_module/util/src/ |
D | util_js.ts | 348 function switchIntValue(value: Object | symbol): string { 350 if (value === '') { 352 } else if (typeof value === 'bigint') { 353 str += value + 'n'; 354 } else if (typeof value === 'symbol') { 356 } else if (typeof value === 'number') { 357 str += parseInt(value.toString(), 10); // 10:The function uses decimal. 358 } else if (value instanceof Array) { 359 if (typeof value[0] === 'number') { 360 str += parseInt(value[0].toString(), 10); // 10:The function uses decimal. [all …]
|
/commonlibrary/ets_utils/js_util_module/container/lightweightmap/ |
D | js_lightweightmap.ts | 33 value: T | undefined; 38 set(target: LightWeightMap<K, V>, p: string, value: string): boolean { 40 target[p] = value; 82 hasValue(value: V): boolean { 84 return this.members.values.indexOf(value) > -1; 96 next: function (): { done: boolean, value: [K, V] } { 98 let value: [K, V] = undefined; variable 100 … value = done ? undefined : [data.members.keys[count], data.members.values[count]] as [K, V]; 104 value: value, 119 getIndexOfValue(value: V): number { [all …]
|
/commonlibrary/c_utils/docs/zh-cn/ |
D | c-utils-guide-parcel.md | 45 | bool | **ReadBool**(bool& value) | 51 | bool | **ReadDouble**(double& value) | 54 | bool | **ReadFloat**(float& value) | 57 | bool | **ReadInt16**(int16_t& value) | 58 | bool | **ReadInt16Unaligned**(int16_t& value) | 61 | bool | **ReadInt32**(int32_t& value) | 64 | bool | **ReadInt64**(int64_t& value) | 67 | bool | **ReadInt8**(int8_t& value) | 68 | bool | **ReadInt8Unaligned**(int8_t& value) | 74 | bool | **ReadString**(std::string& value)<br>从当前parcel读出C++`std::string`字符串对象,并存入输入对象中。 | [all …]
|
/commonlibrary/ets_utils/js_util_module/container/plainarray/ |
D | js_plainarray.ts | 33 value: T | undefined; 38 set(target: PlainArray<T>, p: string, value: string): boolean { 40 target[p] = value; 64 add(key: number, value: T): void { 67 this.addmember(key, value); 104 getIndexOfValue(value: T): number { 106 return this.members.values.indexOf(value); 143 setValueAt(index: number, value: T): void { 147 this.members.values[index] = value; 163 forEach(callbackfn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, [all …]
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
D | parts.rs | 48 pub(crate) fn update(&mut self, headers: Header, value: String) { in update() 50 Header::Authority => self.pseudo.set_authority(Some(value)), in update() 51 Header::Method => self.pseudo.set_method(Some(value)), in update() 52 Header::Path => self.pseudo.set_path(Some(value)), in update() 53 Header::Scheme => self.pseudo.set_scheme(Some(value)), in update() 54 Header::Status => self.pseudo.set_status(Some(value)), in update() 55 Header::Other(header) => self.map.append(header.as_str(), value.as_str()).unwrap(), in update()
|
/commonlibrary/ets_utils/js_util_module/container/lightweightset/ |
D | js_lightweightset.ts | 33 value: T | undefined; 38 set(target: LightWeightSet<T>, p: string, value: string): boolean { 40 target[p] = value; 157 forEach(callbackfn: (value?: T, key?: T, set?: LightWeightSet<T>) => void, 171 next: function (): { done: boolean, value: T } { 173 let value: T = undefined; variable 175 value = done ? undefined : data.members.keys[count]; 179 value: value, 206 next: function (): { done: boolean, value: [T, T] } { 208 let value: [T, T] = undefined; variable [all …]
|
/commonlibrary/utils_lite/js/builtin/kvstorekit/src/ |
D | nativeapi_kv_impl.c | 33 static bool IsValidValue(const char* value) in IsValidValue() argument 35 if (value == NULL) { in IsValidValue() 38 size_t valueLen = strnlen(value, VALUE_MAX_LEN + 1); in IsValidValue() 100 int GetValue(const char* key, char* value) in GetValue() argument 102 if ((key == NULL) || (value == NULL)) { in GetValue() 119 int readLen = read(fileHandle, value, VALUE_MAX_LEN); in GetValue() 125 value[readLen] = '\0'; in GetValue() 129 int SetValue(const char* key, const char* value) in SetValue() argument 131 if ((key == NULL) || (!IsValidValue(value))) { in SetValue() 148 int ret = write(fd, value, strlen(value)); in SetValue()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/ |
D | decoder.rs | 237 (PrefixBit::LITERAL_WITH_INDEXING, DecResult::Decoded(value)) => { in decode() 240 value, in decode() 243 (PrefixBit::LITERAL_WITHOUT_INDEXING, DecResult::Decoded(value)) => { in decode() 246 value, in decode() 249 (_, DecResult::Decoded(value)) => { in decode() 252 value, in decode() 522 value: Vec<u8>, field 526 fn new(repr: PrefixBit, name: Name, value: Vec<u8>) -> Self { in new() 527 Self { repr, name, value } in new() 534 value: self.value, in decode() [all …]
|
/commonlibrary/ets_utils/js_concurrent_module/test/ |
D | test_concurrent.cpp | 27 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \ argument 30 ASSERT_TRUE(value != nullptr); \ 31 ASSERT_CHECK_CALL(napi_typeof(env, value, &valueType)); \ 40 napi_value value = nullptr; variable 42 napi_create_string_utf8(env, str.c_str(), NAPI_AUTO_LENGTH, &value); 44 res = NapiHelper::IsString(value); 51 napi_value value = nullptr; variable 52 ASSERT_CHECK_CALL(napi_get_undefined(env, &value)); 54 res = NapiHelper::IsNotUndefined(value) ? false : true; 99 napi_value value = nullptr; variable [all …]
|
/commonlibrary/ets_utils/js_util_module/container/deque/ |
D | js_deque.ts | 44 set(obj: Deque<T>, prop: any, value: T): boolean { 46 obj[prop] = value; 52 obj[index] = value; 84 value: T; 137 this.forEach(function (value) { 138 if (value === element) { 164 forEach(callbackfn: (value: T, index?: number, deque?: Deque<T>) => void, 208 next: function (): { done: boolean, value: T } { 210 let value: T = undefined; 212 value = done ? undefined : deque[count]; [all …]
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/ |
D | array.rs | 36 value: RefCell<MaybeUninit<T>>, field 64 value: RefCell::new(MaybeUninit::uninit()), in new() 109 pub(crate) fn write(&self, index: usize, value: T) { in write() 111 node.value.borrow_mut().write(value); in write() 122 pub(crate) fn try_send(&self, value: T) -> Result<(), TrySendError<T>> { in try_send() 125 self.write(index, value); in try_send() 128 SendPosition::Full => Err(TrySendError::Full(value)), in try_send() 129 SendPosition::Closed => Err(TrySendError::Closed(value)), in try_send() 133 pub(crate) async fn send(&self, value: T) -> Result<(), SendError<T>> { in send() 136 self.write(index, value); in send() [all …]
|
/commonlibrary/ets_utils/js_util_module/container/queue/ |
D | js_queue.ts | 44 set(obj: Queue<T>, prop: any, value: T): boolean { 46 obj[prop] = value; 52 obj[index] = value; 81 value: T; 125 forEach(callbackfn: (value: T, index?: number, queue?: Queue<T>) => void, 155 next: function (): { done: boolean, value: T } { 157 let value: T = undefined; 159 value = done ? undefined : queue[count]; 163 value: value,
|
/commonlibrary/ets_utils/js_util_module/container/stack/ |
D | js_stack.ts | 44 set(obj: Stack<T>, prop: any, value: T): boolean { 46 obj[prop] = value; 52 obj[index] = value; 82 value: T; 134 forEach(callbackfn: (value: T, index?: number, stack?: Stack<T>) => void, 153 next: function (): { done: boolean, value: T } { 155 let value: T = undefined; 157 value = done ? undefined : stack[count++]; 160 value: value,
|