/commonlibrary/utils_lite/js/builtin/deviceinfokit/src/ |
H A D | nativeapi_ohos_deviceinfo.cpp | 29 const char *value = GetDeviceType();
in JSGetDeviceType() local 30 if (value == nullptr) {
in JSGetDeviceType() 31 value = "";
in JSGetDeviceType() 34 JSIValue deviceType = JSI::CreateString(value);
in JSGetDeviceType() 40 const char *value = GetManufacture();
in JSGetManufacture() local 41 if (value == nullptr) {
in JSGetManufacture() 42 value = "";
in JSGetManufacture() 45 JSIValue manfactureName = JSI::CreateString(value);
in JSGetManufacture() 51 const char *value = GetBrand();
in JSGetBrand() local 52 if (value in JSGetBrand() 62 const char *value = GetMarketName(); JSGetMarketName() local 73 const char *value = GetProductSeries(); JSGetProductSeries() local 84 const char *value = GetProductModel(); JSGetProductModel() local 95 const char *value = GetSoftwareModel(); JSGetSoftwareModel() local 106 const char *value = GetHardwareModel(); JSGetHardwareModel() local 117 const char *value = GetHardwareProfile(); JSGetHardwareProfile() local 128 const char *value = GetSerial(); JSGetSerial() local 139 const char *value = GetBootloaderVersion(); JSGetBootloaderVersion() local 150 const char *value = GetAbiList(); JSGetAbiList() local 161 const char *value = GetSecurityPatchTag(); JSGetSecurityPatchTag() local 172 const char *value = GetDisplayVersion(); JSGetDisplayVersion() local 183 const char *value = GetIncrementalVersion(); JSGetIncrementalVersion() local 194 const char *value = GetOsReleaseType(); JSGetOsReleaseType() local 205 const char *value = GetOSFullName(); JSGetOSFullName() local 215 int value = GetMajorVersion(); JSGetMajorVersion() local 227 int value = GetSeniorVersion(); JSGetSeniorVersion() local 239 int value = GetFeatureVersion(); JSGetFeatureVersion() local 251 int value = GetBuildVersion(); JSGetBuildVersion() local 263 int value = GetSdkApiVersion(); JSGetSdkApiVersion() local 275 int value = GetFirstApiVersion(); JSGetFirstApiVersion() local 287 const char *value = GetVersionId(); JSGetVersionId() local 298 const char *value = GetBuildType(); JSGetBuildType() local 309 const char *value = GetBuildUser(); JSGetBuildUser() local 320 const char *value = GetBuildHost(); JSGetBuildHost() local 331 const char *value = GetBuildTime(); JSGetBuildTime() local 342 const char *value = GetBuildRootHash(); JSGetBuildRootHash() local 354 int value = GetDevUdid(buffer, sizeof(buffer)); JSGetDevUdid() local 366 const char *value = GetDistributionOSName(); JSGetDistributionOSName() local 376 const char *value = GetDistributionOSVersion(); JSGetDistributionOSVersion() local 386 int value = GetDistributionOSApiVersion(); JSGetDistributionOSApiVersion() local 398 const char *value = GetDistributionOSReleaseType(); JSGetDistributionOSReleaseType() local [all...] |
/commonlibrary/rust/ylong_json/src/value/ |
H A D | index.rs | 16 /// Static NULL, which is returned if the searched key-value pair does not exist. 21 /// Gets a common reference to the value with the specified subscript (or key) from a JsonValue. 22 fn index_into<'a>(&self, value: &'a JsonValue) -> &'a JsonValue; in index_into() 24 /// Gets a mutable reference to the value of the specified subscript (or key) from a JsonValue. in index_into() 25 fn index_into_mut<'a>(&self, value: &'a mut JsonValue) -> &'a mut JsonValue; in index_into() 28 fn index_remove(&self, value: &mut JsonValue) -> Option<JsonValue>; in index_into() 53 /// let value = JsonValue::Array(array); 56 /// assert_eq!(value[0], JsonValue::Null); 57 /// assert_eq!(value[1], JsonValue::Boolean(true)); 58 /// assert_eq!(value[ 346 let mut value = JsonValue::new_array(array!(1)); ut_usize_index_into_mut() variables 350 let mut value = JsonValue::new_null(); ut_usize_index_into_mut() variables 366 let mut value = JsonValue::new_array(array!(1)); ut_usize_index_remove() variables 400 let mut value = JsonValue::new_object(object!("key1" => "value1")); ut_str_index_into_mut() variables 404 let mut value = JsonValue::new_null(); ut_str_index_into_mut() variables 420 let mut value = JsonValue::new_object(object!("key1" => "value1")); ut_str_index_remove() variables 426 let mut value = JsonValue::new_null(); ut_str_index_remove() variables 456 let mut value = JsonValue::new_object(object!("key1" => "value1")); ut_string_index_into_mut() variables 460 let mut value = JsonValue::new_null(); ut_string_index_into_mut() variables 476 let mut value = JsonValue::new_object(object!("key1" => "value1")); ut_string_index_remove() variables [all...] |
/commonlibrary/rust/ylong_json/benches/ |
H A D | serialize_json_cmp.rs | 32 let value = JsonValue::from_str(NULL_EXAMPLE).unwrap(); in null_serialize_perf_ylong_json() 35 let _ = value.to_compact_string(); in null_serialize_perf_ylong_json() 42 let value = JsonValue::from_str(BOOLEAN_EXAMPLE).unwrap(); in boolean_serialize_perf_ylong_json() 45 let _ = value.to_compact_string(); in boolean_serialize_perf_ylong_json() 52 let value = JsonValue::from_str(NUMBER_EXAMPLE).unwrap(); in number_serialize_perf_ylong_json() 55 let _ = value.to_compact_string(); in number_serialize_perf_ylong_json() 62 let value = JsonValue::from_str(STRING_EXAMPLE).unwrap(); in string_serialize_perf_ylong_json() 65 let _ = value.to_compact_string(); in string_serialize_perf_ylong_json() 72 let value = JsonValue::from_str(ARRAY_EXAMPLE).unwrap(); in array_serialize_perf_ylong_json() 75 let _ = value in array_serialize_perf_ylong_json() [all...] |
/commonlibrary/ets_utils/js_concurrent_module/common/helper/ |
H A D | napi_helper.h | 26 static bool IsString(napi_env env, napi_value value); 28 static bool IsNotUndefined(napi_env env, napi_value value); 29 static bool IsArray(napi_env env, napi_value value); 31 static bool IsArrayBuffer(napi_env env, napi_value value); 32 static bool IsNumber(napi_env env, napi_value value); 33 static bool IsCallable(napi_env env, napi_value value); 34 static bool IsCallable(napi_env env, napi_ref value); 35 static bool IsAsyncFunction(napi_env env, napi_value value); 36 static bool IsConcurrentFunction(napi_env env, napi_value value); 37 static bool IsGeneratorFunction(napi_env env, napi_value value); [all...] |
H A D | napi_helper.cpp | 37 bool NapiHelper::IsString(napi_env env, napi_value value) in IsString() argument 39 return IsTypeForNapiValue(env, value, napi_string); in IsString() 42 bool NapiHelper::IsNotUndefined(napi_env env, napi_value value) in IsNotUndefined() argument 44 if (value == nullptr) { in IsNotUndefined() 48 if (napi_typeof(env, value, &valueType) != napi_ok) { in IsNotUndefined() 55 bool NapiHelper::IsArray(napi_env env, napi_value value) in IsArray() argument 58 if (value == nullptr) { in IsArray() 61 if (napi_is_array(env, value, &isArray) != napi_ok) { in IsArray() 73 bool NapiHelper::IsArrayBuffer(napi_env env, napi_value value) in IsArrayBuffer() argument 76 if (value in IsArrayBuffer() 86 IsNumber(napi_env env, napi_value value) IsNumber() argument 103 napi_value value = nullptr; GetNamePropertyInParentPort() local 116 IsCallable(napi_env env, napi_value value) IsCallable() argument 123 IsCallable(napi_env env, napi_ref value) IsCallable() argument 133 IsAsyncFunction(napi_env env, napi_value value) IsAsyncFunction() argument 140 IsConcurrentFunction(napi_env env, napi_value value) IsConcurrentFunction() argument 147 IsGeneratorFunction(napi_env env, napi_value value) IsGeneratorFunction() argument 161 IsSendable(napi_env env, napi_value value) IsSendable() argument 168 SetNamePropertyInGlobal(napi_env env, const char* name, napi_value value) SetNamePropertyInGlobal() argument 175 IsObject(napi_env env, napi_value value) IsObject() argument 180 GetChars(napi_env env, napi_value value) GetChars() argument 193 GetString(napi_env env, napi_value value) GetString() argument 205 CreateBooleanValue(napi_env env, bool value) CreateBooleanValue() argument 219 CreateReference(napi_env env, napi_value value, uint32_t refcount) CreateReference() argument 226 CreateUint32(napi_env env, uint32_t value) CreateUint32() argument 266 GetBooleanValue(napi_env env, napi_value value) GetBooleanValue() argument 273 StrictEqual(napi_env env, napi_value value, napi_value cmpValue) StrictEqual() argument 331 GetUint32Value(napi_env env, napi_value value) GetUint32Value() argument 338 GetInt32Value(napi_env env, napi_value value) GetInt32Value() argument 352 GetPrintString(napi_env env, napi_value value) GetPrintString() argument 366 CreateUint64(napi_env env, uint64_t value) CreateUint64() argument 373 GetUint64Value(napi_env env, napi_value value, bool lossless) GetUint64Value() argument 380 GetElement(napi_env env, napi_value value, uint32_t index) GetElement() argument [all...] |
/commonlibrary/rust/ylong_json/src/ |
H A D | serializer_compact.rs | 46 pub fn to_string<T>(value: &T) -> Result<String, Error> in to_string() 51 to_writer(value, &mut writer)?; in to_string() 57 pub fn to_writer<T, W>(value: &T, writer: &mut W) -> Result<(), Error> in to_writer() 66 value.serialize(&mut serializer)?; in to_writer() 170 // Represent an optional instance as the contained value. 171 fn serialize_some<T>(self, value: &T) -> Result<(), Error> in serialize_some() 175 value.serialize(self) in serialize_some() 178 // In Serde, unit represents an anonymous value that does not contain any data. 185 // Unit struct represents a named value that does not contain any data. Map it to JSON as "null". 203 fn serialize_newtype_struct<T>(self, _name: &'static str, value [all...] |
/commonlibrary/ets_utils/js_api_module/buffer/ |
H A D | js_buffer.cpp | 168 void Buffer::WriteBE(int32_t value, uint32_t bytes) in WriteBE() argument 170 uint32_t uValue = static_cast<uint32_t>(value); in WriteBE() 179 void Buffer::WriteLE(int32_t value, uint32_t bytes) in WriteLE() argument 181 uint32_t uValue = static_cast<uint32_t>(value); in WriteLE() 212 void Buffer::WriteInt32BE(int32_t value, uint32_t offset) in WriteInt32BE() argument 215 WriteBE(value, 4); in WriteInt32BE() 228 void Buffer::WriteInt32LE(int32_t value, uint32_t offset) in WriteInt32LE() argument 231 WriteLE(value, 4); in WriteInt32LE() 244 void Buffer::WriteUInt32BE(int32_t value, uint32_t offset) in WriteUInt32BE() argument 247 WriteBE(value, in WriteUInt32BE() 260 WriteUInt32LE(int32_t value, uint32_t offset) WriteUInt32LE() argument 278 uint8_t value; Get() local 286 Set(uint32_t index, uint8_t value) Set() argument 323 WriteString(std::string value, unsigned int size) WriteString() argument 330 WriteString(string value, unsigned int offset, unsigned int length) WriteString() argument 337 WriteStringLoop(string value, unsigned int offset, unsigned int end, unsigned int length) WriteStringLoop() argument 355 Utf16StrToStr(std::u16string value) Utf16StrToStr() argument 369 WriteString(std::u16string value, unsigned int offset, unsigned int length) WriteString() argument 375 WriteStringLoop(std::u16string value, unsigned int offset, unsigned int end) WriteStringLoop() argument 440 GetString(std::string value, EncodingType encodingType) GetString() argument 464 FillString(string value, unsigned int offset, unsigned int end, string encoding) FillString() argument 476 WriteString(string value, unsigned int offset, unsigned int length, string encoding) WriteString() argument [all...] |
H A D | js_buffer.h | 42 void Set(uint32_t index, uint8_t value); 44 void WriteInt32BE(int32_t value, uint32_t offset); 45 void WriteInt32LE(int32_t value, uint32_t offset); 46 void WriteUInt32BE(int32_t value, uint32_t offset); 47 void WriteUInt32LE(int32_t value, uint32_t offset); 56 unsigned int WriteString(std::string value, unsigned int size); 57 unsigned int WriteString(std::string value, unsigned int offset, unsigned int length); 58 unsigned int WriteString(std::u16string value, unsigned int offset, unsigned int length); 59 unsigned int WriteString(std::string value, unsigned int offset, unsigned int length, std::string encoding); 72 void FillString(std::string value, unsigne [all...] |
/commonlibrary/c_utils/base/include/ |
H A 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/c_utils/base/src/ |
H A D | parcel.cpp | 448 bool Parcel::Write(T value) in Write() argument 453 *reinterpret_cast<T *>(data_ + writeCursor_) = value; in Write() 462 bool Parcel::WriteBool(bool value) in WriteBool() argument 464 return Write<int32_t>(static_cast<int32_t>(value)); in WriteBool() 467 bool Parcel::WriteBoolUnaligned(bool value) in WriteBoolUnaligned() argument 469 return Write<bool>(value); in WriteBoolUnaligned() 472 bool Parcel::WriteInt8(int8_t value) in WriteInt8() argument 474 return Write<int32_t>(static_cast<int32_t>(value)); in WriteInt8() 477 bool Parcel::WriteInt8Unaligned(int8_t value) in WriteInt8Unaligned() argument 479 return Write<int8_t>(value); in WriteInt8Unaligned() 482 WriteInt16(int16_t value) WriteInt16() argument 487 WriteInt16Unaligned(int16_t value) WriteInt16Unaligned() argument 492 WriteInt32(int32_t value) WriteInt32() argument 497 WriteInt64(int64_t value) WriteInt64() argument 502 WriteUint8(uint8_t value) WriteUint8() argument 507 WriteUint8Unaligned(uint8_t value) WriteUint8Unaligned() argument 512 WriteUint16(uint16_t value) WriteUint16() argument 517 WriteUint16Unaligned(uint16_t value) WriteUint16Unaligned() argument 522 WriteUint32(uint32_t value) WriteUint32() argument 527 WriteUint64(uint64_t value) WriteUint64() argument 532 WriteFloat(float value) WriteFloat() argument 537 WriteDouble(double value) WriteDouble() argument 542 WritePointer(uintptr_t value) WritePointer() argument 547 WriteCString(const char *value) WriteCString() argument 560 WriteString(const std::string &value) WriteString() argument 580 WriteString16(const std::u16string &value) WriteString16() argument 600 WriteString16WithLength(const char16_t *value, size_t len) WriteString16WithLength() argument 621 WriteString8WithLength(const char *value, size_t len) WriteString8WithLength() argument 774 Read(T &value) Read() argument 1007 ReadPadded(T &value) ReadPadded() argument 1018 ReadBool(bool &value) ReadBool() argument 1023 ReadInt8(int8_t &value) ReadInt8() argument 1028 ReadInt8Unaligned(int8_t &value) ReadInt8Unaligned() argument 1033 ReadInt16(int16_t &value) ReadInt16() argument 1038 ReadInt16Unaligned(int16_t &value) ReadInt16Unaligned() argument 1043 ReadInt32(int32_t &value) ReadInt32() argument 1048 ReadInt64(int64_t &value) ReadInt64() argument 1053 ReadUint8(uint8_t &value) ReadUint8() argument 1058 ReadUint8Unaligned(uint8_t &value) ReadUint8Unaligned() argument 1063 ReadUint16(uint16_t &value) ReadUint16() argument 1068 ReadUint16Unaligned(uint16_t &value) ReadUint16Unaligned() argument 1073 ReadUint32(uint32_t &value) ReadUint32() argument 1078 ReadUint64(uint64_t &value) ReadUint64() argument 1083 ReadFloat(float &value) ReadFloat() argument 1088 ReadDouble(double &value) ReadDouble() argument 1144 ReadString(std::string &value) ReadString() argument 1205 ReadString16(std::u16string &value) ReadString16() argument [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/ |
H A D | array.rs | 35 value: RefCell<MaybeUninit<T>>, 63 value: RefCell::new(MaybeUninit::uninit()), 105 pub(crate) fn write(&self, index: usize, value: T) { 108 node.value.borrow_mut().write(value); 119 pub(crate) fn try_send(&self, value: T) -> Result<(), TrySendError<T>> { 122 self.write(index, value); 125 SendPosition::Full => Err(TrySendError::Full(value)), 126 SendPosition::Closed => Err(TrySendError::Closed(value)), 130 pub(crate) async fn send(&self, value [all...] |
H A D | mod.rs | 128 /// Attempts to send a value to the associated [`BoundedReceiver`]. 131 /// return an error containing sent value. 133 /// # Return value 134 /// * `Ok(T)` if receiving a value successfully. 154 pub fn try_send(&self, value: T) -> Result<(), TrySendError<T>> { in try_send() 155 self.channel.try_send(value) in try_send() 158 /// Sends a value to the associated receiver 161 /// containing the sent value. 163 /// # Return value 164 /// * `Ok()` if sending a value successfull [all...] |
/commonlibrary/rust/ylong_http/ylong_http/tests/ |
H A D | sdv_http_headers.rs | 28 let value = HeaderValue::from_bytes(b"Foo").unwrap(); in sdv_client_send_request_repeatedly() 29 let header = Header::from_raw_parts(name, value); in sdv_client_send_request_repeatedly() 32 assert_eq!(format!("{:?}", header), "Header { name: HeaderName { name: \"john-doe\" }, value: HeaderValue { inner: [[70, 111, 111]], is_sensitive: false } }"); in sdv_client_send_request_repeatedly() 38 let mut value = HeaderValue::from_bytes(b"Foo").unwrap(); in sdv_client_send_request_repeatedly() variables 40 format!("{:?}", value.append_bytes(b"Foo\r\n").err().unwrap()), in sdv_client_send_request_repeatedly() 45 headers.insert("key", "value").unwrap(); in sdv_client_send_request_repeatedly() 46 assert_eq!(format!("{}", headers), "key: value\n"); in sdv_client_send_request_repeatedly() 48 let mut value = HeaderValue::from_bytes(b"value").unwrap(); in sdv_client_send_request_repeatedly() variables 49 assert_eq!(mut_value, Some(&mut value)); in sdv_client_send_request_repeatedly() [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/h3/ |
H A D | error.rs | 130 fn from(value: u64) -> Self { in from() 131 match value { in from() 159 fn from(value: QpackError) -> Self { in from() 160 DecodeError::QpackError(value) in from() 165 fn from(value: QpackError) -> Self { in from() 166 EncodeError::QpackError(value) in from() 171 fn from(value: EncodeError) -> Self { in from() 172 H3Error::Encode(value) in from() 177 fn from(value: DecodeError) -> Self { in from() 178 H3Error::Decode(value) in from() [all...] |
H A D | parts.rs | 50 pub fn update(&mut self, headers: NameField, value: String) { in update() 52 NameField::Authority => self.pseudo.set_authority(Some(value)), in update() 53 NameField::Method => self.pseudo.set_method(Some(value)), in update() 54 NameField::Path => self.pseudo.set_path(Some(value)), in update() 55 NameField::Scheme => self.pseudo.set_scheme(Some(value)), in update() 56 NameField::Status => self.pseudo.set_status(Some(value)), in update() 57 NameField::Other(header) => self.map.append(header.as_str(), value.as_str()).unwrap(), in update() 99 "test-value".to_string(), in ut_h3_part_update() 110 Some("test-value".to_string()) in ut_h3_part_update()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | parts.rs | 48 pub(crate) fn update(&mut self, headers: Header, value: String) { 50 Header::Authority => self.pseudo.set_authority(Some(value)), 51 Header::Method => self.pseudo.set_method(Some(value)), 52 Header::Path => self.pseudo.set_path(Some(value)), 53 Header::Scheme => self.pseudo.set_scheme(Some(value)), 54 Header::Status => self.pseudo.set_status(Some(value)), 55 Header::Other(header) => self.map.append(header.as_str(), value.as_str()).unwrap(),
|
/commonlibrary/utils_lite/js/builtin/kvstorekit/src/ |
H A 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, strle in SetValue() [all...] |
H A D | nativeapi_kv.cpp | 73 int GetValueInner(const char* dataPath, const char* key, char* value)
in GetValueInner() argument 79 return GetValue(g_kvFullPath, value);
in GetValueInner() 82 int SetValueInner(const char* dataPath, const char* key, const char* value)
in SetValueInner() argument 88 return SetValue(g_kvFullPath, value);
in SetValueInner() 130 char* value = reinterpret_cast<char *>(malloc(VALUE_MAX_LEN + 1));
in ExecuteGet() local 131 if (value == nullptr) {
in ExecuteGet() 140 ret = GetValueInner(dataPath, key, value);
in ExecuteGet() 149 result = JSI::CreateString(value);
in ExecuteGet() 152 free(value);
in ExecuteGet() 167 char* value in ExecuteSet() local [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/ |
H A D | decoder.rs | 170 // RFC7541-6.1: The index value of 0 is not used. It MUST be treated in decode() 219 /// `ValueString` is responsible for decoding the value string part. 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() 518 /// Finish state, generate `Representation` by name and value. 522 value [all...] |
H A D | encoder.rs | 185 Some(value) => return Some((Header::Method, value)), in next() 189 Some(value) => return Some((Header::Status, value)), in next() 193 Some(value) => return Some((Header::Scheme, value)), in next() 197 Some(value) => return Some((Header::Path, value)), in next() 201 Some(value) => return Some((Header::Authority, value)), in next() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_signal/tests/ |
H A D | signal.rs | 48 let value = Arc::new(AtomicUsize::new(0)); in sdv_signal_register_succeed() 49 let value_cpy = value.clone(); in sdv_signal_register_succeed() 68 assert_eq!(value.load(Ordering::Relaxed), 0); in sdv_signal_register_succeed() 71 assert_eq!(value.load(Ordering::Relaxed), 1); in sdv_signal_register_succeed() 75 assert_eq!(value.load(Ordering::Relaxed), 1); in sdv_signal_register_succeed() 104 /// 2. Checks if the return value is InvalidInput error 106 /// 4. Checks if the return value is Ok 108 /// 6. Checks if the return value is AlreadyExists error 110 /// 8. Checks if the return value is OK 113 /// 11. Checks if the return value i [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/ |
H A D | decoder.rs | 126 value, 130 updater.update_table(mid_bit, name, value)?; 137 value, 141 updater.update_table(mid_bit, name, value)?; 277 value, in decode_buffered_repr() 280 searcher.search_literal_with_indexing(mid_bit, name, value)?; in decode_buffered_repr() 286 value, in decode_buffered_repr() 289 searcher.search_literal_with_post_indexing(mid_bit, name, value)?; in decode_buffered_repr() 294 value, in decode_buffered_repr() 297 searcher.search_listeral_with_literal(mid_bit, name, value) in decode_buffered_repr() [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/format/ |
H A D | encoder.rs | 382 fn new(index: usize, value: Vec<u8>, is_huffman: bool, is_static: bool) -> Self { in new() 387 .set_value(value, is_huffman), in new() 393 .set_value(value, is_huffman), in new() 414 value: Vec<u8>, in new() 423 .set_value(value, is_huffman), in new() 428 .set_value(value, is_huffman), in new() 433 .set_value(value, is_huffman), in new() 438 .set_value(value, is_huffman), in new() 457 fn new(index: usize, value: Vec<u8>, is_huffman: bool, no_permit: bool) -> Self { in new() 462 .set_value(value, is_huffma in new() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/ |
H A D | queue.rs | 36 value: RefCell<MaybeUninit<T>>, 131 value: T, in send_inner() 144 node.value.as_ptr().write(MaybeUninit::new(value)); in send_inner() 150 pub(crate) fn send(&self, value: T) -> Result<(), SendError<T>> { 156 return Err(SendError(value)); 174 self.send_inner(index, block, new_block, value); 196 let value = unsafe { node.value.as_ptr().read().assume_init() }; 208 Ok(value) [all...] |
/commonlibrary/ets_utils/js_concurrent_module/test/ |
H A D | test_concurrent.cpp | 28 #define ASSERT_CHECK_VALUE_TYPE(env, value, type) \ 31 ASSERT_TRUE(value != nullptr); \ 32 ASSERT_CHECK_CALL(napi_typeof(env, value, &valueType)); \ 41 napi_value value = nullptr; in HWTEST_F() local 43 napi_create_string_utf8(env, str.c_str(), NAPI_AUTO_LENGTH, &value); in HWTEST_F() 45 res = NapiHelper::IsString(env, value); in HWTEST_F() 52 napi_value value = nullptr; in HWTEST_F() local 53 ASSERT_CHECK_CALL(napi_get_undefined(env, &value)); in HWTEST_F() 55 res = NapiHelper::IsNotUndefined(env, value) ? false : true; in HWTEST_F() 137 napi_value value in HWTEST_F() local 197 napi_value value = nullptr; HWTEST_F() local 206 napi_value value = nullptr; HWTEST_F() local 342 napi_value value = nullptr; HWTEST_F() local 353 napi_value value = nullptr; HWTEST_F() local 368 napi_value value = nullptr; HWTEST_F() local 385 napi_value value = nullptr; HWTEST_F() local 394 napi_value value = nullptr; HWTEST_F() local 602 napi_value value = nullptr; HWTEST_F() local 611 napi_value value = nullptr; HWTEST_F() local 620 napi_value value = nullptr; HWTEST_F() local 660 napi_value value = nullptr; HWTEST_F() local 670 napi_value value = nullptr; HWTEST_F() local [all...] |