wtx 0.28.0

A collection of different transport implementations and related tools focused primarily on web technologies.
1
2
3
4
5
6
7
8
9
use crate::misc::Vector;

pub(crate) fn _data(len: usize) -> Vector<u8> {
  Vector::from_iter((0..len).map(|el| {
    let n = el % usize::try_from(u8::MAX).unwrap();
    n.try_into().unwrap()
  }))
  .unwrap()
}