/ohos5.0/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestCommon.cpp | 30 ASSERT_EQ(bytes, 8); 32 ASSERT_EQ(bytes, 8); 34 ASSERT_EQ(bytes, 8); 36 ASSERT_EQ(bytes, 8); 38 ASSERT_EQ(bytes, 8); 40 ASSERT_EQ(bytes, 8); 43 ASSERT_EQ(bytes, 4); 45 ASSERT_EQ(bytes, 4); 47 ASSERT_EQ(bytes, 4); 49 ASSERT_EQ(bytes, 4); [all …]
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hdr/ |
H A D | jpeg_mpf_parser.cpp | 316 ImageUtils::Uint16ToBytes(tagCount, bytes, offset); in WriteMpIndexIFD() 330 ImageUtils::Uint32ToBytes(imageNum, bytes, offset); in WriteMpIndexIFD() 348 bytes[index++] = 0xFF; in PackHdrJpegMpfMarker() 349 bytes[index++] = 0xE2; in PackHdrJpegMpfMarker() 360 WriteMpIndexIFD(bytes, index, images.size()); in PackHdrJpegMpfMarker() 363 WriteMPEntryToBytes(bytes, index, images); in PackHdrJpegMpfMarker() 364 return bytes; in PackHdrJpegMpfMarker() 376 return bytes; in PackFragmentMetadata() 381 std::vector<uint8_t> bytes(UINT32_BYTE_SIZE); in PackDataSize() local 384 return bytes; in PackDataSize() [all …]
|
H A D | hdr_helper.cpp | 942 bytes[offset++] = 0x00; in PackVividPreInfo() 944 bytes[offset++] = 0x00; in PackVividPreInfo() 985 return bytes; in PackBaseVividMarker() 1014 return bytes; in PackBaseISOMarker() 1030 return bytes; in PackHdrMediaTypeMarker() 1062 bytes[offset++] = flag; in PackTransformInfo() 1166 if (memcpy_s(bytes.data() + index, bytes.size() - index, in PackVividMetadata() 1198 return bytes; in PackVividMetadataMarker() 1271 bytes[index] = 0x00; in PackISOMetadataMarker() 1273 bytes[index] |= 0x40; in PackISOMetadataMarker() [all …]
|
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/bandwidth_manager_test/ |
H A D | bandwidth_manager_class_test.cpp | 141 int64_t bytes = 0; variable 153 int64_t bytes = 0; variable 165 int64_t bytes = 1; variable 177 int64_t bytes = 1; variable 190 int64_t bytes = 0; variable 203 int64_t bytes = 0; variable 218 int64_t bytes = 0; variable 221 bytes = 100; 258 int64_t bytes = 0; variable 271 int64_t bytes = 0; variable [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/ |
H A D | mix.rs | 28 Owned { bytes: Vec<u8>, index: usize }, 41 bytes: vec![], in new() 48 bytes: &[], in new_as_bytes() 55 MixFrom::Owned { bytes, index: _ } => bytes.is_empty(), in is_empty() 56 MixFrom::Slice { bytes, index: _ } => bytes.is_empty(), in is_empty() 126 .field("bytes", bytes) in fmt() 131 .field("bytes", bytes) in fmt() 147 bytes: l_bytes, in eq() 151 bytes: r_bytes, in eq() 157 bytes: l_bytes, in eq() [all …]
|
/ohos5.0/docs/en/application-dev/security/AssetStoreKit/ |
H A D | asset-native-update.md | 23 …bytes | No | Asset attribute information customized by the service wit… 24 …bytes | No | Asset attribute information customized by the service wit… 25 …bytes | No | Asset attribute information customized by the service wit… 26 …bytes | No | Asset attribute information customized by the service wit… 27 …bytes | No | Asset attribute information customized by the service wit… 28 …bytes | No | Asset attribute information customized by the service wit… 29 …bytes | No | Asset attribute information customized by the service wit… 42 …8 bytes| No | New asset attribute information customized by the service without integrity prote… 43 …8 bytes| No | New asset attribute information customized by the service without integrity prote… 44 …8 bytes| No | New asset attribute information customized by the service without integrity prote… [all …]
|
H A D | asset-js-update.md | 23 …bytes | No | Asset attribute information customized by the service with i… 24 …bytes | No | Asset attribute information customized by the service with i… 25 …bytes | No | Asset attribute information customized by the service with in… 26 …bytes | No | Asset attribute information customized by the service with i… 27 …bytes | No | Asset attribute information customized by the service withou… 28 …bytes | No | Asset attribute information customized by the service withou… 29 …bytes | No | Asset attribute information customized by the service withou… 30 …bytes | No | Asset attribute information customized by the service withou… 42 …bytes | No | New asset attribute information customized by the service wi… 43 …bytes | No | New asset attribute information customized by the service wi… [all …]
|
H A D | asset-js-query-auth.md | 30 …bytes | No | Asset attribute information customized by the service with in… 31 …bytes | No | Asset attribute information customized by the service with int… 32 …bytes | No | Asset attribute information customized by the service with i… 33 …bytes | No | Asset attribute information customized by the service with i… 34 …bytes | No | Asset attribute information customized by the service withou… 35 …bytes | No | Asset attribute information customized by the service withou… 36 …bytes | No | Asset attribute information customized by the service withou… 37 …bytes | No | Asset attribute information customized by the service withou… 57 …bytes | No | Asset attribute information customized by the service with i… 58 …bytes | No | Asset attribute information customized by the service with i… [all …]
|
H A D | asset-native-remove.md | 15 | ASSET_TAG_ALIAS | Type: uint8[]<br>Length: 1-256 bytes … 21 …bytes | No | Asset attribute information customized by the service wit… 22 …bytes | No | Asset attribute information customized by the service wit… 23 …bytes | No | Asset attribute information customized by the service wit… 24 …bytes | No | Asset attribute information customized by the service wit… 25 …bytes | No | Asset attribute information customized by the service wit… 26 …bytes | No | Asset attribute information customized by the service wit… 27 …bytes | No | Asset attribute information customized by the service wit… 28 …bytes | No | Asset attribute information customized by the service wit… 29 | ASSET_TAG_DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | Type: uint8[]<br>Length: 1-2048 bytes| No| Lo… [all …]
|
H A D | asset-js-remove.md | 15 | ALIAS | Type: Uint8Array<br>Length: 1-256 bytes | No … 21 …bytes | No | Asset attribute information customized by the service with i… 22 …bytes | No | Asset attribute information customized by the service with i… 23 …bytes | No | Asset attribute information customized by the service with i… 24 …bytes | No | Asset attribute information customized by the service with i… 25 …bytes | No | Asset attribute information customized by the service withou… 26 …bytes | No | Asset attribute information customized by the service withou… 27 …bytes | No | Asset attribute information customized by the service withou… 28 …bytes | No | Asset attribute information customized by the service withou… 29 | DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local att… [all …]
|
H A D | asset-native-add.md | 15 | ASSET_TAG_SECRET | Type: uint8[]<br>Length: 1-1024 bytes … 16 | ASSET_TAG_ALIAS | Type: uint8[]<br>Length: 1-256 bytes … 22 …bytes | No | Asset attribute information customized by the service wit… 23 …bytes | No | Asset attribute information customized by the service wit… 24 …bytes | No | Asset attribute information customized by the service wit… 25 …bytes | No | Asset attribute information customized by the service wit… 26 …bytes | No | Asset attribute information customized by the service wit… 27 …bytes | No | Asset attribute information customized by the service wit… 28 …bytes | No | Asset attribute information customized by the service wit… 29 …bytes | No | Asset attribute information customized by the service wit… [all …]
|
H A D | asset-js-add.md | 15 | SECRET | Type: Uint8Array<br>Length: 1-1024 bytes | Yes … 16 | ALIAS | Type: Uint8Array<br>Length: 1-256 bytes | Yes … 22 …bytes | No | Asset attribute information customized by the service with … 23 …bytes | No | Asset attribute information customized by the service with in… 24 …bytes | No | Asset attribute information customized by the service with i… 25 …bytes | No | Asset attribute information customized by the service with i… 26 …bytes | No | Asset attribute information customized by the service withou… 27 …bytes | No | Asset attribute information customized by the service withou… 28 …bytes | No | Asset attribute information customized by the service withou… 29 …bytes | No | Asset attribute information customized by the service withou… [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/ |
H A D | octets.rs | 57 let res: u8 = u8::from_be_bytes(bytes); in into_u8() 60 let res: u8 = u8::from_le_bytes(bytes); in into_u8() 73 let res: u16 = u16::from_be_bytes(bytes); in into_u16() 76 let res: u16 = u16::from_le_bytes(bytes); in into_u16() 89 let res: u32 = u32::from_be_bytes(bytes); in into_u32() 203 let bytes: [u8; len] = value.to_be_bytes(); in write_u8() localVariable 204 self.buf.copy_from_slice(bytes.as_slice()); in write_u8() 215 let bytes: [u8; len] = value.to_be_bytes(); in write_u16() localVariable 216 self.buf.copy_from_slice(bytes.as_slice()); in write_u16() 227 let bytes: [u8; len] = value.to_be_bytes(); in write_u32() localVariable [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | wifi_randommac_helper_test.cpp | 66 std::vector<uint8_t> bytes = {}; variable 67 WifiRandomMacHelper::LongLongToBytes(data, bytes); 69 EXPECT_EQ(bytes.size(), 8); 78 std::vector<uint8_t> bytes = {}; variable 79 WifiRandomMacHelper::LongLongToBytes(data, bytes); 81 EXPECT_EQ(bytes.size(), 8); 85 addBytes.assign(bytes.begin() + 2, bytes.end()); 93 std::vector<uint8_t> bytes = {}; variable 96 bytes.emplace_back(1); 97 bytes.emplace_back(2); [all …]
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-ping6.md | 55 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 56 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 57 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 58 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 68 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 69 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 70 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 81 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 82 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 83 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-asset-store-kit/ |
H A D | _asset_type.md | 218 | ASSET_TAG_SECRET | 表示用户敏感数据,如口令、令牌等,其值为bytes类型。 | 219 | ASSET_TAG_ALIAS | 表示一个关键资产的标识,其值为bytes类型。 | 224 | ASSET_TAG_AUTH_CHALLENGE | 表示认证时防重放用的挑战值,其值为bytes类型。 | 225 | ASSET_TAG_AUTH_TOKEN | 表示用户认证后获取到的认证令牌,其值为bytes类型。 | 228 | ASSET_TAG_DATA_LABEL_CRITICAL_1 | 表示一个用户可自定义传入的字段,该字段不可被更新,其值为bytes类型。 | 229 | ASSET_TAG_DATA_LABEL_CRITICAL_2 | 表示一个用户可自定义传入的字段,该字段不可被更新,其值为bytes类型。 | 230 | ASSET_TAG_DATA_LABEL_CRITICAL_3 | 表示一个用户可自定义传入的字段,该字段不可被更新,其值为bytes类型。 | 232 | ASSET_TAG_DATA_LABEL_NORMAL_1 | 表示一个用户可自定义传入的字段,该字段可被更新,其值为bytes类型。 | 233 | ASSET_TAG_DATA_LABEL_NORMAL_2 | 表示一个用户可自定义传入的字段,该字段可被更新,其值为bytes类型。 | 234 | ASSET_TAG_DATA_LABEL_NORMAL_3 | 表示一个用户可自定义传入的字段,该字段可被更新,其值为bytes类型。 | [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | image_utils.cpp | 637 if (bytes == nullptr) { in BytesToUint16() 641 data = (bytes[offset] << MOVE_BITS_8) | bytes[offset + NUM_1]; in BytesToUint16() 643 data = (bytes[offset + NUM_1] << MOVE_BITS_8) | bytes[offset]; in BytesToUint16() 653 if (bytes == nullptr) { in BytesToUint32() 657 data = (bytes[offset] << MOVE_BITS_24) | (bytes[offset + NUM_1] << MOVE_BITS_16) | in BytesToUint32() 658 (bytes[offset + NUM_2] << MOVE_BITS_8) | (bytes[offset + NUM_3]); in BytesToUint32() 661 (bytes[offset + NUM_1] << MOVE_BITS_8) | bytes[offset]; in BytesToUint32() 671 if (bytes == nullptr) { in BytesToInt32() 675 data = (bytes[offset] << MOVE_BITS_24) | (bytes[offset + NUM_1] << MOVE_BITS_16) | in BytesToInt32() 676 (bytes[offset + NUM_2] << MOVE_BITS_8) | (bytes[offset + NUM_3]); in BytesToInt32() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/ |
H A D | method.rs | 115 pub fn from_bytes(bytes: &[u8]) -> Result<Method, HttpError> { in from_bytes() 116 if bytes.len() < 3 || bytes.len() > 7 { in from_bytes() 119 match bytes[0] { in from_bytes() 120 b'G' if b"ET" == &bytes[1..] => Ok(Method::GET), in from_bytes() 121 b'P' => match bytes[1] { in from_bytes() 122 b'U' if b"T" == &bytes[2..] => Ok(Method::PUT), in from_bytes() 123 b'O' if b"ST" == &bytes[2..] => Ok(Method::POST), in from_bytes() 126 b'H' if b"EAD" == &bytes[1..] => Ok(Method::HEAD), in from_bytes() 127 b'T' if b"RACE" == &bytes[1..] => Ok(Method::TRACE), in from_bytes() 128 b'D' if b"ELETE" == &bytes[1..] => Ok(Method::DELETE), in from_bytes() [all …]
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-ping6.md | 55 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 56 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 57 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 58 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms 68 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=1 time<1 ms 69 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 70 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 81 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=2 time<1 ms 82 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=3 time<1 ms 83 56 bytes from 2001:A:B:C:D:E:F:B : icmp_seq=4 time<1 ms [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | mod.rs | 229 if bytes.is_empty() { in from_bytes() 617 Scheme::from_bytes(bytes) in try_from() 649 if bytes.is_empty() { in from_bytes() 731 Authority::from_bytes(bytes) in try_from() 869 Path::from_bytes(bytes) in try_from() 1013 let mut end = bytes.len(); in authority_token() 1060 bytes: &[u8], in authority_parse() 1084 let mut end = bytes.len(); in path_token() 1103 Ok((None, &bytes[end..])) in path_token() 1108 if bytes.is_empty() { in query_token() [all …]
|
/ohos5.0/base/startup/hvb/libhvb/src/utils/ |
H A D | hvb_util.c | 77 uint8_t bytes[8]; in hvb_htobe64() member 80 ret.bytes[0] = (data >> 56) & 0xff; in hvb_htobe64() 81 ret.bytes[1] = (data >> 48) & 0xff; in hvb_htobe64() 82 ret.bytes[2] = (data >> 40) & 0xff; in hvb_htobe64() 83 ret.bytes[3] = (data >> 32) & 0xff; in hvb_htobe64() 84 ret.bytes[4] = (data >> 24) & 0xff; in hvb_htobe64() 85 ret.bytes[5] = (data >> 16) & 0xff; in hvb_htobe64() 86 ret.bytes[6] = (data >> 8) & 0xff; in hvb_htobe64() 87 ret.bytes[7] = data & 0xff; in hvb_htobe64()
|
/ohos5.0/foundation/communication/nfc/test/unittest/services/public_test/ |
H A D | nfc_public_test.cpp | 90 unsigned char *bytes = new unsigned char[0]; variable 102 unsigned char bytes[4] = {'b', 'c', '0', '1'}; variable 103 uint32_t size = sizeof(bytes) / sizeof(bytes[0]); 210 std::vector<unsigned char> bytes; variable 211 NfcSdkCommon::HexStringToBytes(src, bytes); 212 ASSERT_TRUE(bytes.empty() == true); 222 std::vector<unsigned char> bytes; variable 223 NfcSdkCommon::HexStringToBytes(src, bytes); 290 std::vector<unsigned char> bytes; variable 291 NfcSdkCommon::HexStringToBytes(src, bytes); [all …]
|
/ohos5.0/docs/en/application-dev/security/UniversalKeystoreKit/ |
H A D | huks-concepts.md | 79 …| 4 bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| L<sub>n</sub> bytes| L<sub>e</sub> bytes| L<sub>d</… 84 …| 4 bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| L<sub>x</sub> bytes| L<sub>y</sub> bytes| L<sub>z</… 89 …bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| L<sub>x</sub> bytes| L<sub>y</sub> by… 94 | 4 bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| L<sub>pk</sub> bytes| L<sub>sk</sub> bytes| 99 | 4 bytes| 4 bytes| 4 bytes| 4 bytes| 4 bytes| L<sub>pk</sub> bytes| L<sub>sk</sub> bytes|
|
H A D | huks-key-import-overview.md | 48 | Shared_Key **AAD2** length (L<sub>AAD2</sub>)| 4 bytes| 49 | Shared_Key **AAD2**| L<sub>AAD2</sub> bytes| 51 | Shared_Key **Nonce2**| L<sub>Nonce2</sub> bytes| 52 | Shared_Key **AEAD2** length (L<sub>AEAD2</sub>)| 4 bytes| 53 | Shared_Key **AEAD2**| L<sub>AEAD2</sub> bytes| 56 | Caller_Kek **AAD3** length (L<sub>AAD3</sub>)| 4 bytes| 57 | Caller_Kek **AAD3**| L<sub>AAD3</sub> bytes| 59 | Caller_Kek **Nonce3**| L<sub>Nonce3</sub> bytes| 60 | Caller_Kek **AEAD3** length (L<sub>AEAD3</sub>)| 4 bytes| 61 | Caller_Kek **AEAD3**| L<sub>AEAD3</sub> bytes| [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | protocol_proto.h | 94 …static int CheckAndParsePacket(const std::string &srcTarget, const uint8_t *bytes, uint32_t length, 101 static void DisplayPacketInformation(const uint8_t *bytes, uint32_t length); 106 static int CalculateXorSum(const uint8_t *bytes, uint32_t length, uint64_t &outSum); 115 … static int ParseCommPhyHeader(const std::string &srcTarget, const uint8_t *bytes, uint32_t length, 117 static int ParseCommPhyHeaderCheckMagicAndVersion(const uint8_t *bytes, uint32_t length); 119 const uint8_t *bytes, uint32_t length); 120 static int ParseCommPhyOptHeader(const uint8_t *bytes, uint32_t length, ParseResult &inResult); 121 static int ParseCommDivergeHeader(const uint8_t *bytes, uint32_t length, ParseResult &inResult); 122 static int ParseCommLayerPayload(const uint8_t *bytes, uint32_t length, ParseResult &inResult); 123 static int ParseLabelExchange(const uint8_t *bytes, uint32_t length, ParseResult &inResult); [all …]
|