Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/ohos5.0/foundation/multimedia/media_foundation/test/unittest/
H A DTestCommon.cpp30 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 Djpeg_mpf_parser.cpp316 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 Dhdr_helper.cpp942 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 Dbandwidth_manager_class_test.cpp141 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 Dmix.rs28 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 Dasset-native-update.md23bytes | No | Asset attribute information customized by the service wit…
24bytes | No | Asset attribute information customized by the service wit…
25bytes | No | Asset attribute information customized by the service wit…
26bytes | No | Asset attribute information customized by the service wit…
27bytes | No | Asset attribute information customized by the service wit…
28bytes | No | Asset attribute information customized by the service wit…
29bytes | 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 Dasset-js-update.md23bytes | No | Asset attribute information customized by the service with i…
24bytes | No | Asset attribute information customized by the service with i…
25bytes | No | Asset attribute information customized by the service with in…
26bytes | No | Asset attribute information customized by the service with i…
27bytes | No | Asset attribute information customized by the service withou…
28bytes | No | Asset attribute information customized by the service withou…
29bytes | No | Asset attribute information customized by the service withou…
30bytes | No | Asset attribute information customized by the service withou…
42bytes | No | New asset attribute information customized by the service wi…
43bytes | No | New asset attribute information customized by the service wi…
[all …]
H A Dasset-js-query-auth.md30bytes | No | Asset attribute information customized by the service with in…
31bytes | No | Asset attribute information customized by the service with int…
32bytes | No | Asset attribute information customized by the service with i…
33bytes | No | Asset attribute information customized by the service with i…
34bytes | No | Asset attribute information customized by the service withou…
35bytes | No | Asset attribute information customized by the service withou…
36bytes | No | Asset attribute information customized by the service withou…
37bytes | No | Asset attribute information customized by the service withou…
57bytes | No | Asset attribute information customized by the service with i…
58bytes | No | Asset attribute information customized by the service with i…
[all …]
H A Dasset-native-remove.md15 | ASSET_TAG_ALIAS | Type: uint8[]<br>Length: 1-256 bytes
21bytes | No | Asset attribute information customized by the service wit…
22bytes | No | Asset attribute information customized by the service wit…
23bytes | No | Asset attribute information customized by the service wit…
24bytes | No | Asset attribute information customized by the service wit…
25bytes | No | Asset attribute information customized by the service wit…
26bytes | No | Asset attribute information customized by the service wit…
27bytes | No | Asset attribute information customized by the service wit…
28bytes | 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 Dasset-js-remove.md15 | ALIAS | Type: Uint8Array<br>Length: 1-256 bytes | No …
21bytes | No | Asset attribute information customized by the service with i…
22bytes | No | Asset attribute information customized by the service with i…
23bytes | No | Asset attribute information customized by the service with i…
24bytes | No | Asset attribute information customized by the service with i…
25bytes | No | Asset attribute information customized by the service withou…
26bytes | No | Asset attribute information customized by the service withou…
27bytes | No | Asset attribute information customized by the service withou…
28bytes | 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 Dasset-native-add.md15 | ASSET_TAG_SECRET | Type: uint8[]<br>Length: 1-1024 bytes
16 | ASSET_TAG_ALIAS | Type: uint8[]<br>Length: 1-256 bytes
22bytes | No | Asset attribute information customized by the service wit…
23bytes | No | Asset attribute information customized by the service wit…
24bytes | No | Asset attribute information customized by the service wit…
25bytes | No | Asset attribute information customized by the service wit…
26bytes | No | Asset attribute information customized by the service wit…
27bytes | No | Asset attribute information customized by the service wit…
28bytes | No | Asset attribute information customized by the service wit…
29bytes | No | Asset attribute information customized by the service wit…
[all …]
H A Dasset-js-add.md15 | SECRET | Type: Uint8Array<br>Length: 1-1024 bytes | Yes …
16 | ALIAS | Type: Uint8Array<br>Length: 1-256 bytes | Yes …
22bytes | No | Asset attribute information customized by the service with …
23bytes | No | Asset attribute information customized by the service with in…
24bytes | No | Asset attribute information customized by the service with i…
25bytes | No | Asset attribute information customized by the service with i…
26bytes | No | Asset attribute information customized by the service withou…
27bytes | No | Asset attribute information customized by the service withou…
28bytes | No | Asset attribute information customized by the service withou…
29bytes | No | Asset attribute information customized by the service withou…
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h3/
H A Doctets.rs57 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 Dwifi_randommac_helper_test.cpp66 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 Dkernel-small-debug-shell-net-ping6.md55 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.md218 | 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 Dimage_utils.cpp637 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 Dmethod.rs115 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 Dkernel-small-debug-shell-net-ping6.md55 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 Dmod.rs229 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 Dhvb_util.c77 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 Dnfc_public_test.cpp90 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 Dhuks-concepts.md79 …| 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</…
89bytes| 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 Dhuks-key-import-overview.md48 | 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 Dprotocol_proto.h94 …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 …]

12345678910>>...29