Benign cargo Download

bytes.rs

Uses a 100-or-more-bound Rust range loop
SHA-25608617f811a7af465a41fc2eb7d6120bc45540c097b963de84df6ca13b29019aa
MaleculeH(Db)

Evidence

Uses a 100-or-more-bound Rust range loop lines 1–20
1:16… )]
2
3extern crate bytes;
4extern crate test;
5
6use test::Bencher;
7use bytes::{Bytes, BytesMut, BufMut};
8
9#[bench]
10fn alloc_small(b: &mut Bencher) {
11 b.iter(|| {
12 for _ in 0..1024 {
13 test::black_box(BytesMut::with_capacity(12));
14 }
⋯6 lines
imports std::fmt::Write lines 142–146
142:2… [bench]
143fn fmt_write(b: &mut Bencher) {
144 use std::fmt::Write;
145 let mut buf = BytesMut::with_capacity(128);
146 let s = "foo bar baz quux lorem ipsum dolo …
English function-word token "with" lines 182–190
182:42… + i % 10));
183 }
184 })
185}
186
187// Keep in sync with bytes.rs
188#[cfg(target_pointer_width = "64")]
189const INLINE_CAP: usize = 4 * 8 - 1;
190#[cfg(target_ …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.