Home
last modified time | relevance | path

Searched refs:bytes (Results 1 - 25 of 5636) sorted by relevance

12345678910>>...226

/third_party/musl/libc-test/src/functionalext/supplement/multibyte/
H A Dc16rtomb.c30 char bytes[MB_LEN_MAX]; in c16rtomb_0100() local
31 memset(bytes, 0, sizeof(bytes)); in c16rtomb_0100()
32 size_t result = c16rtomb(bytes, L'h', NULL); in c16rtomb_0100()
36 if (bytes[0] != 'h') { in c16rtomb_0100()
37 t_error("%s bytes[0] is %c, not \'h\'\n", bytes[0]); in c16rtomb_0100()
47 memset(bytes, 0, sizeof(bytes)); in c16rtomb_0100()
48 result = c16rtomb(bytes, in c16rtomb_0100()
111 char bytes[MB_LEN_MAX]; c16rtomb_0300() local
126 char bytes[MB_LEN_MAX]; c16rtomb_0400() local
154 char bytes[MB_LEN_MAX]; c16rtomb_0500() local
[all...]
H A Dc32rtomb.c48 char bytes[MB_LEN_MAX]; in c32rtomb_0200() local
49 memset(bytes, 1, sizeof(bytes)); in c32rtomb_0200()
51 size_t result = c32rtomb(bytes, L'\0', NULL); in c32rtomb_0200()
55 if (bytes[0] != '\0') { in c32rtomb_0200()
56 t_error("%s bytes[0] failed\n", __func__); in c32rtomb_0200()
58 if (bytes[1] != '\x01') { in c32rtomb_0200()
59 t_error("%s bytes[1] failed\n", __func__); in c32rtomb_0200()
62 memset(bytes, 0, sizeof(bytes)); in c32rtomb_0200()
79 char bytes[MB_LEN_MAX]; c32rtomb_0300() local
150 char bytes[MB_LEN_MAX]; c32rtomb_0400() local
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DICUBinary.java54 static boolean validate(ByteBuffer bytes) { in validate() argument
56 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in validate()
60 int count = bytes.getInt(bytes.position()); // Do not move the position. in validate()
64 // For each item, there is one ToC entry (8 bytes) and a name string in validate()
65 // and a data item of at least 16 bytes. in validate()
67 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate()
70 if (!startsWithPackageName(bytes, getNameOffset(bytes, in validate()
77 startsWithPackageName(ByteBuffer bytes, int start) startsWithPackageName() argument
93 getData(ByteBuffer bytes, CharSequence key) getData() argument
105 addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) addBaseNamesInFolder() argument
120 binarySearch(ByteBuffer bytes, CharSequence key) binarySearch() argument
145 getNameOffset(ByteBuffer bytes, int index) getNameOffset() argument
153 getDataOffset(ByteBuffer bytes, int index) getDataOffset() argument
167 addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) addBaseName() argument
265 PackageDataFile(String item, ByteBuffer bytes) PackageDataFile() argument
359 compareKeys(CharSequence key, ByteBuffer bytes, int offset) compareKeys() argument
378 compareKeys(CharSequence key, byte[] bytes, int offset) compareKeys() argument
553 readHeaderAndDataVersion(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeaderAndDataVersion() argument
572 readHeader(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeader() argument
649 skipBytes(ByteBuffer bytes, int skipLength) skipBytes() argument
655 getBytes(ByteBuffer bytes, int length, int additionalSkipLength) getBytes() argument
664 getString(ByteBuffer bytes, int length, int additionalSkipLength) getString() argument
671 getChars(ByteBuffer bytes, int length, int additionalSkipLength) getChars() argument
678 getShorts(ByteBuffer bytes, int length, int additionalSkipLength) getShorts() argument
685 getInts(ByteBuffer bytes, int length, int additionalSkipLength) getInts() argument
692 getLongs(ByteBuffer bytes, int length, int additionalSkipLength) getLongs() argument
702 sliceWithOrder(ByteBuffer bytes) sliceWithOrder() argument
[all...]
H A DRBBIDataWrapper.java41 * Length of a table row in bytes. Note mismatch with table data, which is short[].
59 * Length in bytes of the state table header, of all the int32 fields
71 static RBBIStateTable get(ByteBuffer bytes, int length) throws IOException { in get() argument
79 This.fNumStates = bytes.getInt(); in get()
80 This.fRowLen = bytes.getInt(); in get()
81 This.fDictCategoriesStart = bytes.getInt(); in get()
82 This.fLookAheadResultsSize = bytes.getInt(); in get()
83 This.fFlags = bytes.getInt(); in get()
84 int lengthOfTable = length - fHeaderSize; // length in bytes. in get()
89 byte b = bytes in get()
99 put(DataOutputStream bytes) put() argument
292 get(ByteBuffer bytes) get() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
H A DICUBinary.java58 static boolean validate(ByteBuffer bytes) { in validate() argument
60 readHeader(bytes, DATA_FORMAT, IS_ACCEPTABLE); in validate()
64 int count = bytes.getInt(bytes.position()); // Do not move the position. in validate()
68 // For each item, there is one ToC entry (8 bytes) and a name string in validate()
69 // and a data item of at least 16 bytes. in validate()
71 if (bytes.position() + 4 + count * (8 + 16) > bytes.capacity()) { in validate()
74 if (!startsWithPackageName(bytes, getNameOffset(bytes, in validate()
81 startsWithPackageName(ByteBuffer bytes, int start) startsWithPackageName() argument
97 getData(ByteBuffer bytes, CharSequence key) getData() argument
109 addBaseNamesInFolder(ByteBuffer bytes, String folder, String suffix, Set<String> names) addBaseNamesInFolder() argument
124 binarySearch(ByteBuffer bytes, CharSequence key) binarySearch() argument
149 getNameOffset(ByteBuffer bytes, int index) getNameOffset() argument
157 getDataOffset(ByteBuffer bytes, int index) getDataOffset() argument
171 addBaseName(ByteBuffer bytes, int index, String folder, String suffix, StringBuilder sb, Set<String> names) addBaseName() argument
269 PackageDataFile(String item, ByteBuffer bytes) PackageDataFile() argument
363 compareKeys(CharSequence key, ByteBuffer bytes, int offset) compareKeys() argument
382 compareKeys(CharSequence key, byte[] bytes, int offset) compareKeys() argument
558 readHeaderAndDataVersion(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeaderAndDataVersion() argument
577 readHeader(ByteBuffer bytes, int dataFormat, Authenticate authenticate) readHeader() argument
654 skipBytes(ByteBuffer bytes, int skipLength) skipBytes() argument
660 getBytes(ByteBuffer bytes, int length, int additionalSkipLength) getBytes() argument
669 getString(ByteBuffer bytes, int length, int additionalSkipLength) getString() argument
676 getChars(ByteBuffer bytes, int length, int additionalSkipLength) getChars() argument
683 getShorts(ByteBuffer bytes, int length, int additionalSkipLength) getShorts() argument
690 getInts(ByteBuffer bytes, int length, int additionalSkipLength) getInts() argument
697 getLongs(ByteBuffer bytes, int length, int additionalSkipLength) getLongs() argument
707 sliceWithOrder(ByteBuffer bytes) sliceWithOrder() argument
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf/
H A DByteString.cs50 /// Immutable array of bytes.
56 private readonly byte[] bytes; field in Google.Protobuf.ByteString
67 internal static ByteString FromBytes(byte[] bytes) in FromBytes() argument
69 return new ByteString(bytes); in FromBytes()
76 internal static ByteString AttachBytes(byte[] bytes) in AttachBytes() argument
78 return new ByteString(bytes); in AttachBytes()
85 private ByteString(byte[] bytes) in ByteString() argument
87 this.bytes = bytes; in ByteString()
99 /// Returns the length of this ByteString in bytes
164 FromBase64(string bytes) FromBase64() argument
227 CopyFrom(params byte[] bytes) CopyFrom() argument
235 CopyFrom(byte[] bytes, int offset, int count) CopyFrom() argument
248 CopyFrom(ReadOnlySpan<byte> bytes) CopyFrom() argument
[all...]
/third_party/elfutils/libdw/
H A Ddwarf_next_cfi.c63 const uint8_t *bytes = data->d_buf + off; in dwarf_next_cfi() local
69 uint64_t length = read_4ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi()
75 if (unlikely (limit - bytes < 8)) in dwarf_next_cfi()
81 length = read_8ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi()
90 if (unlikely ((uint64_t) (limit - bytes) < length) in dwarf_next_cfi()
100 limit = bytes + length; in dwarf_next_cfi()
102 const uint8_t *const cie_pointer_start = bytes; in dwarf_next_cfi()
104 entry->cie.CIE_id = read_8ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi()
107 entry->cie.CIE_id = read_4ubyte_unaligned_inc (&dw, bytes); in dwarf_next_cfi()
132 uint8_t version = *bytes in dwarf_next_cfi()
[all...]
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/
H A Dparse.rs1 /// Find and parse sign and get remaining bytes.
3 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
4 match bytes.get(0) { in parse_sign()
5 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
6 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
7 _ => (true, bytes), in parse_sign()
56 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero()
57 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
58 &bytes[count..]
63 fn rtrim_zero<'a>(bytes
[all...]
/third_party/skia/fuzz/
H A DFuzzMain.cpp33 static DEFINE_string2(bytes, b, "", "A path to a file or a directory. If a file, the "
34 "contents will be used as the fuzz bytes. If a directory, all files "
35 "in the directory will be used as fuzz bytes for the fuzzer, one at a "
44 static constexpr char g_type_message[] = "How to interpret --bytes, one of:\n"
79 static void fuzz_api(sk_sp<SkData> bytes, SkString name);
147 sk_sp<SkData> bytes(SkData::MakeFromFileName(path.c_str())); in fuzz_file()
148 if (!bytes) { in fuzz_file()
164 fuzz_android_codec(bytes); in fuzz_file()
168 fuzz_animated_img(bytes); in fuzz_file()
172 fuzz_api(bytes, nam in fuzz_file()
351 fuzz_json(sk_sp<SkData> bytes) fuzz_json() argument
359 fuzz_skottie_json(sk_sp<SkData> bytes) fuzz_skottie_json() argument
368 fuzz_svg_dom(sk_sp<SkData> bytes) fuzz_svg_dom() argument
379 calculate_option(SkData* bytes) calculate_option() argument
395 fuzz_api(sk_sp<SkData> bytes, SkString name) fuzz_api() argument
418 fuzz_animated_img(sk_sp<SkData> bytes) fuzz_animated_img() argument
428 fuzz_image_decode(sk_sp<SkData> bytes) fuzz_image_decode() argument
438 fuzz_image_decode_incremental(sk_sp<SkData> bytes) fuzz_image_decode_incremental() argument
448 fuzz_android_codec(sk_sp<SkData> bytes) fuzz_android_codec() argument
463 fuzz_img(sk_sp<SkData> bytes, uint8_t scale, uint8_t mode) fuzz_img() argument
700 fuzz_skp(sk_sp<SkData> bytes) fuzz_skp() argument
705 fuzz_color_deserialize(sk_sp<SkData> bytes) fuzz_color_deserialize() argument
716 fuzz_path_deserialize(sk_sp<SkData> bytes) fuzz_path_deserialize() argument
724 fuzz_region_deserialize(sk_sp<SkData> bytes) fuzz_region_deserialize() argument
734 fuzz_textblob_deserialize(sk_sp<SkData> bytes) fuzz_textblob_deserialize() argument
742 fuzz_region_set_path(sk_sp<SkData> bytes) fuzz_region_set_path() argument
750 fuzz_filter_fuzz(sk_sp<SkData> bytes) fuzz_filter_fuzz() argument
757 fuzz_skruntimeeffect(sk_sp<SkData> bytes) fuzz_skruntimeeffect() argument
767 fuzz_sksl2glsl(sk_sp<SkData> bytes) fuzz_sksl2glsl() argument
777 fuzz_sksl2spirv(sk_sp<SkData> bytes) fuzz_sksl2spirv() argument
787 fuzz_sksl2metal(sk_sp<SkData> bytes) fuzz_sksl2metal() argument
797 fuzz_sksl2pipeline(sk_sp<SkData> bytes) fuzz_sksl2pipeline() argument
807 fuzz_skdescriptor_deserialize(sk_sp<SkData> bytes) fuzz_skdescriptor_deserialize() argument
[all...]
/third_party/rust/crates/minimal-lexical/tests/
H A Dintegration_tests.rs1 /// Find and parse sign and get remaining bytes.
3 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
4 match bytes.get(0) { in parse_sign()
5 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
6 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
7 _ => (true, bytes), in parse_sign()
56 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero()
57 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
58 &bytes[count..]
63 fn rtrim_zero<'a>(bytes
[all...]
/third_party/cups-filters/cupsfilters/
H A Dcheck.c14 * cupsCheckBytes() - Check to see if all bytes are zero.
15 * cupsCheckValue() - Check to see if all bytes match the given value.
26 * 'cupsCheckBytes()' - Check to see if all bytes are zero.
30 cupsCheckBytes(const unsigned char *bytes, /* I - Bytes to check */ in cupsCheckBytes() argument
31 int length) /* I - Number of bytes to check */ in cupsCheckBytes()
35 if (*bytes++) in cupsCheckBytes()
37 if (*bytes++) in cupsCheckBytes()
39 if (*bytes++) in cupsCheckBytes()
41 if (*bytes++) in cupsCheckBytes()
43 if (*bytes in cupsCheckBytes()
70 cupsCheckValue(const unsigned char *bytes, int length, const unsigned char value) cupsCheckValue() argument
[all...]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmendian.h39 /* Reverse the bytes in a 16-bit value */
44 /* Reverse the bytes in a 32-bit value */
56 /* Reverse the bytes in a 64-bit value */
192 #define htol16_ua_store(val, bytes) ({ \
194 uint8 *_bytes = (uint8 *)(bytes); \
199 #define htol32_ua_store(val, bytes) ({ \
201 uint8 *_bytes = (uint8 *)(bytes); \
208 #define htol64_ua_store(val, bytes) ({ \
210 uint8 *_bytes = (uint8 *)(bytes); \
218 #define hton16_ua_store(val, bytes) ({ \
309 htol16_ua_store(uint16 val, uint8 *bytes) htol16_ua_store() argument
319 htol32_ua_store(uint32 val, uint8 *bytes) htol32_ua_store() argument
331 htol64_ua_store(uint64 val, uint8 *bytes) htol64_ua_store() argument
344 hton16_ua_store(uint16 val, uint8 *bytes) hton16_ua_store() argument
354 hton32_ua_store(uint32 val, uint8 *bytes) hton32_ua_store() argument
366 ltoh16_ua(const void *bytes) ltoh16_ua() argument
375 ltoh32_ua(const void *bytes) ltoh32_ua() argument
384 ltoh64_ua(const void *bytes) ltoh64_ua() argument
393 ntoh16_ua(const void *bytes) ntoh16_ua() argument
402 ntoh32_ua(const void *bytes) ntoh32_ua() argument
411 ntoh64_ua(const void *bytes) ntoh64_ua() argument
[all...]
/third_party/python/Lib/
H A Dtelnetlib.py53 IAC = bytes([255]) # "Interpret As Command"
54 DONT = bytes([254])
55 DO = bytes([253])
56 WONT = bytes([252])
57 WILL = bytes([251])
58 theNULL = bytes([0])
60 SE = bytes([240]) # Subnegotiation End
61 NOP = bytes([241]) # No Operation
62 DM = bytes([242]) # Data Mark
63 BRK = bytes([24
[all...]
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/
H A D_common.rs6 /// Find and parse sign and get remaining bytes.
8 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
9 match bytes.get(0) { in parse_sign()
10 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
11 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
12 _ => (true, bytes), in parse_sign()
61 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero()
62 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
63 &bytes[count..]
68 fn rtrim_zero<'a>(bytes
[all...]
/kernel/linux/linux-5.10/include/sound/
H A Dpcm-indirect.h22 unsigned int sw_io; /* Current software pointer in bytes */
28 struct snd_pcm_indirect *rec, size_t bytes);
55 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() local
56 if (rec->sw_ready < (int)bytes) in snd_pcm_indirect_playback_transfer()
57 bytes = rec->sw_ready; in snd_pcm_indirect_playback_transfer()
58 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
59 bytes = hw_to_end; in snd_pcm_indirect_playback_transfer()
60 if (sw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
61 bytes = sw_to_end; in snd_pcm_indirect_playback_transfer()
62 if (! bytes) in snd_pcm_indirect_playback_transfer()
85 int bytes = ptr - rec->hw_io; snd_pcm_indirect_playback_pointer() local
123 size_t bytes = rec->sw_buffer_size - rec->sw_ready; snd_pcm_indirect_capture_transfer() local
154 int bytes = ptr - rec->hw_io; snd_pcm_indirect_capture_pointer() local
[all...]
/kernel/linux/linux-6.6/include/sound/
H A Dpcm-indirect.h22 unsigned int sw_io; /* Current software pointer in bytes */
28 struct snd_pcm_indirect *rec, size_t bytes);
55 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() local
56 if (rec->sw_ready < (int)bytes) in snd_pcm_indirect_playback_transfer()
57 bytes = rec->sw_ready; in snd_pcm_indirect_playback_transfer()
58 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
59 bytes = hw_to_end; in snd_pcm_indirect_playback_transfer()
60 if (sw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
61 bytes = sw_to_end; in snd_pcm_indirect_playback_transfer()
62 if (! bytes) in snd_pcm_indirect_playback_transfer()
85 int bytes = ptr - rec->hw_io; snd_pcm_indirect_playback_pointer() local
128 size_t bytes = rec->sw_buffer_size - rec->sw_ready; snd_pcm_indirect_capture_transfer() local
159 int bytes = ptr - rec->hw_io; snd_pcm_indirect_capture_pointer() local
[all...]
/third_party/rust/crates/minimal-lexical/examples/
H A Dsimple.rs3 //! This works on input bytes, however, it could be easily adapted to use
4 //! `io::Read`, or any iterator over bytes. Since floats can only include
6 //! remaining bytes properly on UTF-8 boundaries.
48 /// Find and parse sign and get remaining bytes.
50 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
51 match bytes.get(0) { in parse_sign()
52 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
53 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
54 _ => (true, bytes), in parse_sign()
103 fn ltrim_zero<'a>(bytes
[all...]
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/
H A D_common.rs20 /// Find and parse sign and get remaining bytes.
22 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
23 match bytes.get(0) { in parse_sign()
24 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
25 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
26 _ => (true, bytes), in parse_sign()
75 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero()
76 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
77 &bytes[count..]
82 fn rtrim_zero<'a>(bytes
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-io-rewind.c14 unsigned int bytes) in dm_bvec_iter_rewind()
18 iter->bi_size += bytes; in dm_bvec_iter_rewind()
19 if (bytes <= iter->bi_bvec_done) { in dm_bvec_iter_rewind()
20 iter->bi_bvec_done -= bytes; in dm_bvec_iter_rewind()
24 bytes -= iter->bi_bvec_done; in dm_bvec_iter_rewind()
27 while (idx >= 0 && bytes && bytes > bv[idx].bv_len) { in dm_bvec_iter_rewind()
28 bytes -= bv[idx].bv_len; in dm_bvec_iter_rewind()
32 if (WARN_ONCE(idx < 0 && bytes, in dm_bvec_iter_rewind()
34 iter->bi_size -= bytes; in dm_bvec_iter_rewind()
12 dm_bvec_iter_rewind(const struct bio_vec *bv, struct bvec_iter *iter, unsigned int bytes) dm_bvec_iter_rewind() argument
60 unsigned int bytes = bio_integrity_bytes(bi, bytes_done >> 9); dm_bio_integrity_rewind() local
94 dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes) dm_bio_crypt_rewind() argument
104 dm_bio_crypt_rewind(struct bio *bio, unsigned int bytes) dm_bio_crypt_rewind() argument
110 dm_bio_rewind_iter(const struct bio *bio, struct bvec_iter *iter, unsigned int bytes) dm_bio_rewind_iter() argument
132 dm_bio_rewind(struct bio *bio, unsigned int bytes) dm_bio_rewind() argument
[all...]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
H A DMessageParsingHelpers.cs42 public static void AssertReadingMessage<T>(MessageParser<T> parser, byte[] bytes, Action<T> assert) where T : IMessage<T>
44 var parsedStream = parser.ParseFrom(bytes);
47 var parsedBuffer = parser.ParseFrom(new ReadOnlySequence<byte>(bytes));
51 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes));
57 public static void AssertReadingMessage(MessageParser parser, byte[] bytes, Action<IMessage> assert) in AssertReadingMessage() argument
59 var parsedStream = parser.ParseFrom(bytes); in AssertReadingMessage()
62 var parsedBuffer = parser.ParseFrom(new ReadOnlySequence<byte>(bytes)); in AssertReadingMessage()
66 parsedBuffer = parser.ParseFrom(ReadOnlySequenceFactory.CreateWithContent(bytes)); in AssertReadingMessage()
72 public static void AssertReadingMessageThrows<TMessage, TException>(MessageParser<TMessage> parser, byte[] bytes)
76 Assert.Throws<TException>(() => parser.ParseFrom(bytes));
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Duio.h103 * Total number of bytes covered by an iovec.
129 struct iov_iter *i, unsigned long offset, size_t bytes);
130 void iov_iter_advance(struct iov_iter *i, size_t bytes);
131 void iov_iter_revert(struct iov_iter *i, size_t bytes);
132 int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes);
134 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes,
136 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes,
139 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i);
140 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i);
141 bool _copy_from_iter_full(void *addr, size_t bytes, struc
146 copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) copy_to_iter() argument
155 copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) copy_from_iter() argument
164 copy_from_iter_full(void *addr, size_t bytes, struct iov_iter *i) copy_from_iter_full() argument
173 copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i) copy_from_iter_nocache() argument
182 copy_from_iter_full_nocache(void *addr, size_t bytes, struct iov_iter *i) copy_from_iter_full_nocache() argument
209 copy_from_iter_flushcache(void *addr, size_t bytes, struct iov_iter *i) copy_from_iter_flushcache() argument
218 copy_mc_to_iter(void *addr, size_t bytes, struct iov_iter *i) copy_mc_to_iter() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Dchacha_glue.c49 unsigned int bytes, int nrounds) in chacha_dosimd()
53 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd()
54 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
56 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
61 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd()
62 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
64 state[12] += chacha_advance(bytes, 8); in chacha_dosimd()
67 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd()
68 chacha_4block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
70 state[12] += chacha_advance(bytes, in chacha_dosimd()
48 chacha_dosimd(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_dosimd() argument
142 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dchacha_glue.c49 unsigned int bytes, int nrounds) in chacha_dosimd()
53 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd()
54 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
56 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
61 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd()
62 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
64 state[12] += chacha_advance(bytes, 8); in chacha_dosimd()
67 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd()
68 chacha_4block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
70 state[12] += chacha_advance(bytes, in chacha_dosimd()
48 chacha_dosimd(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_dosimd() argument
142 chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) chacha_crypt_arch() argument
[all...]
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-golang/
H A Dmain.rs13 /// Find and parse sign and get remaining bytes.
15 fn parse_sign<'a>(bytes: &'a [u8]) -> (bool, &'a [u8]) { in parse_sign()
16 match bytes.get(0) { in parse_sign()
17 Some(&b'+') => (true, &bytes[1..]), in parse_sign()
18 Some(&b'-') => (false, &bytes[1..]), in parse_sign()
19 _ => (true, bytes), in parse_sign()
68 fn ltrim_zero<'a>(bytes: &'a [u8]) -> &'a [u8] { in ltrim_zero()
69 let count = bytes.iter().take_while(|&&si| si == b'0').count(); in ltrim_zero()
70 &bytes[count..]
75 fn rtrim_zero<'a>(bytes
[all...]
/third_party/backends/backend/
H A Dricoh.h110 _lto2b(SANE_Int val, SANE_Byte *bytes) in _lto2b() argument
113 bytes[0] = (val >> 8) & 0xff; in _lto2b()
114 bytes[1] = val & 0xff; in _lto2b()
118 _lto3b(SANE_Int val, SANE_Byte *bytes) in _lto3b() argument
121 bytes[0] = (val >> 16) & 0xff; in _lto3b()
122 bytes[1] = (val >> 8) & 0xff; in _lto3b()
123 bytes[2] = val & 0xff; in _lto3b()
127 _lto4b(SANE_Int val, SANE_Byte *bytes) in _lto4b() argument
130 bytes[0] = (val >> 24) & 0xff; in _lto4b()
131 bytes[ in _lto4b()
137 _2btol(SANE_Byte *bytes) _2btol() argument
147 _3btol(SANE_Byte *bytes) _3btol() argument
158 _4btol(SANE_Byte *bytes) _4btol() argument
[all...]

Completed in 11 milliseconds

12345678910>>...226