Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/tokio-rs/bytes
Utilities for working with bytes
https://github.com/tokio-rs/bytes
536db06f168bdef967afbeac0561bf774e9a1315 authored 9 months ago by Brad Dunbar <[email protected]>
Bytes doesn't have an unsplit method anymore. We can always retrieve
these from git history if ...
7968f6f83d17175683e04ce56aa48e44ed7d0d98 authored 10 months ago by Brad Dunbar <[email protected]>
Fixes #454.
c5fae00c76dbd1af7ea7b6cde7a9281d82ee7cd2 authored 10 months ago by Brad Dunbar <[email protected]>
CI is [failing][failure] due to unused_imports because Iterator is
already in the prelude. Remo...
* set len a little more concisely
* inline set_end
* remove kind assertions
* remove a duplic...
I can't see any reason that get_vec_pos needs a &mut self.
1bcd2129d195a0722d8b5b1a16c7d33698701f2e authored 11 months ago by Brad Dunbar <[email protected]>
The second argument to `set_vec_pos` always contains the value of
`self.data`. Let's just use `...
We don't need the original capacity if the shared data is unique, so
let's not calculate it unt...
We're always subtracting here, and we already have a usize, so `sub`
seems like a more appropri...
These seem to have been commented by accident in #298, and are still
passing.
Instead of re-declaring `vec`, we can just use a mut parameter.
d2e7abdb290e663f025a22a7d9e14e019b6abdb2 authored 11 months ago by Brad Dunbar <[email protected]>e24587dd6197dbc58d6c2b6eb7186df99b04d881 authored 11 months ago by Brad Dunbar <[email protected]>
9257a6ea0852c03f4672e5f8346d3d614543e270 authored 11 months ago by Brad Dunbar <[email protected]>
0ba3b4c4cd74a0ad8566277e1a1533fa9e895756 authored 11 months ago by Brad Dunbar <[email protected]>
0864aea9704ac12fa53ee96a7f968e51c9dabba1 authored 11 months ago by Cyborus04 <[email protected]>
Back in #362, an assertion was added to ensure that the alignment of
bytes::Shared is even so w...
09214ba51bdace6f6cb91740cee9514fc08d55ce authored 12 months ago by Taiki Endo <[email protected]>
fbc64bcc6713b51fa1253cf18fc80c904796ddb5 authored 12 months ago by Taiki Endo <[email protected]>
3bf6583b5cece02526b9b225e6ace0552a36ded3 authored 12 months ago by Alice Ryhl <[email protected]>
I was a little confused about these calls using `Self::` instead of
`self.` here. Is there a re...
This reworks `UninitSlice::as_uninit_slice_mut()` using equivalent
simpler logic.
Fixed a few broken links and converted a lot of them from the
html-link to intra-doc links.
Co-authored-by: Daniel Bauman <[email protected]>
bde8c50703869f54b905560eb62c2478a0111885 authored about 1 year ago by DanielB <[email protected]>fd9243f9e2fe2027243b1a23d518c723c24a17b7 authored about 1 year ago by Alice Ryhl <[email protected]>
a4e16a552bf5bee0b75d549a98551d5ab1b074e4 authored about 1 year ago by mxsm <[email protected]>
a14ef4617c1d041cd4b479cd7f5453054b8e639a authored over 1 year ago by Lucas Kent <[email protected]>
bd9c164cb65cf9b80436c3229a6753dc9c4e73eb authored over 1 year ago by Alice Ryhl <[email protected]>
74e6e200fd671340d4d4a874f83776def04f6c7b authored over 1 year ago by Alice Ryhl <[email protected]>
tokio::io::ReadBuf uses names `new` and `uninit` for its constructors.
For consistency with tha...
c7756c3e5976246926a5c8227c181a97d80cf22b authored over 1 year ago by Taiki Endo <[email protected]>
b29112ce4484424a0137173310ec8b9f84db27ae authored almost 2 years ago by Michal Nazarewicz <[email protected]>
Introduce UninitSlice::from_slice and UninitSlice::from_uninit_slice
methods which safely creat...
This function can be hot in applications that do a lot of encoding. Ideally would do the same fo...
74b04c7aae5fd7e73f4283774eab0ef72a26a8a7 authored almost 2 years ago by Paa Kojo Samanpa <[email protected]>21ed3328364716fa30a4bf7502c913bbf0a90f45 authored almost 2 years ago by Alice Ryhl <[email protected]>
When we freeze a BytesMut, we turn it into a Vec, and then convert that
to a Bytes. Currently,...
f15bba3375f7e75f412b085f75b3112cceaa6ef1 authored almost 2 years ago by 0xc0001a2040 <[email protected]>
Co-authored-by: Nicolae Mihalache <[email protected]>
c93a94b974d8c7c926c4e49ed4ce4645fb0e3801 authored about 2 years ago by Nicolae Mihalache <[email protected]>050d65b2cee8b2272687d798dc209dc03fe92719 authored about 2 years ago by Matthijs van Otterdijk <[email protected]>
9b227220dfeb5d176b807c9bf27e1ee438935f78 authored about 2 years ago by Sean Lynch <[email protected]>
Fixes #549
8a8c41f5c215e03d94ab9b38a88f5991b4cf24ab authored about 2 years ago by Sean Lynch <[email protected]>5c7b4317e019f9b46dcc11e5a6a18e514ce85ebe authored about 2 years ago by Sean Lynch <[email protected]>
6e4b1f244b15dc486578103ae2db927bedee2d3e authored about 2 years ago by Yotam Ofek <[email protected]>
a36f661354a99f8dd14b15acfe69bc16d5505fbe authored over 2 years ago by Adam Chalmers <[email protected]>
d1b5d4ceb1645d0843729479a04be6c119a04369 authored over 2 years ago by Alice Ryhl <[email protected]>
b7249149a926f0d5f9f89897853eb7dc7506d27b authored over 2 years ago by Alice Ryhl <[email protected]>
Fixes calls to `reserve` when the underlying shared buffer was already
big enough to fit the re...
38fd42acbaced11ff19f0a4ca2af44a308af5063 authored over 2 years ago by Alice Ryhl <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Co-authored-by: Frank Steffahn <frank.steffahn...
Signed-off-by: Jiahao XU <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
10d1f6ec5c4e878aad9d13140d3479b3ea78ffcf authored over 2 years ago by Jiahao XU <[email protected]>068ed41bc02c21fe0a0a4d8e95af8a4668276f5d authored over 2 years ago by Jiahao XU <[email protected]>
f514bd38dac85695e9053d990b251643e9e4ef92 authored over 2 years ago by Alice Ryhl <[email protected]>
28a1eab1e0531a0e7b9624e474a8c06dfd5c8072 authored over 2 years ago by Lucio Franco <[email protected]>
3536017ccfc5cf2d837a5cee8262b1de6c3eafc7 authored over 2 years ago by Zettroke <[email protected]>
This adds an unsafe method to convert a `&mut UninitSlice` into a
`&mut [MaybeUninit<u8>]`. Thi...
0ce4fe3c91f0d008674869348ffd804b78846eca authored over 2 years ago by Taiki Endo <[email protected]>
716a0b189e3508dbab808e067a8bfb857401a744 authored over 2 years ago by Alice Ryhl <[email protected]>
This reverts commit 89061c323861c4e9555881fef940836f1cd132cc.
Why am I even able to push to mas...
b4b2c18c27cc0a33d68e7f0db29e0b6626fef6e8 authored over 2 years ago by Alice Ryhl <[email protected]>89061c323861c4e9555881fef940836f1cd132cc authored over 2 years ago by Alice Ryhl <[email protected]>
0a2c43af8811fecf6fd08379f16571594bcbb738 authored over 2 years ago by Jiahao XU <[email protected]>
8198f9e28ebbf59760af25748d18d6a43260edf3 authored over 2 years ago by Alice Ryhl <[email protected]>
547a32033ec60edc143da33c6c0fbde9d845e91a authored over 2 years ago by Alice Ryhl <[email protected]>
Previously, this code produced a &mut[u8] and a Box<[u8]> to the shared
allocation upon cloning...
9e6edd18d297ec1b1bf9e01b1fce7a52eacdd8cc authored over 2 years ago by Evan Cameron <[email protected]>
I find this diagram very helpful, but a little hard to distinguish
between the boxes and the li...
* Optimize `BytesMut::reserve`: Reuse vec if possible
If the `BytesMut` holds a unqiue refere...
d4f5023383d233819e727d2b223493ba1c730211 authored almost 3 years ago by Jiahao XU <[email protected]>88f5e12350db414c5beac65d488f634fe296223a authored almost 3 years ago by Ralf Jung <[email protected]>
131dae161fff368e8b6dbc8da0abf053dac5e523 authored almost 3 years ago by Rob Ede <[email protected]>
0e3b2466f199375031006857164fbf70e3ea479f authored almost 3 years ago by Rob Ede <[email protected]>
68afb40df9ea2e61a93d0e26f6f8a9f231979452 authored about 3 years ago by Donough Liu <[email protected]>
d946ef2e91651a4d73a04b48715ecf0cde6db75d authored about 3 years ago by Cyborus04 <[email protected]>
Rewrote the ledger in test_bytes_vec_alloc.rs to not piss off miri. The ledger is now a table wi...
ba5c5c93affe9386dd052c5236cad83057f9a81d authored about 3 years ago by Noah Kennedy <[email protected]>ebc61e5af14cd9b436ba880cf19e849b05a04c29 authored over 3 years ago by Alice Ryhl <[email protected]>
55e296850d3de4563ef5b260b076e6c697391604 authored over 3 years ago by Christopher Hotchkiss <[email protected]>
0e9fa0b602eb0fb977e2e900cf43532cd869d6b3 authored over 3 years ago by Ian Jackson <[email protected]>
Co-authored-by: Taiki Endo <[email protected]>
ee24be7fa0561169c39308678c35e1ac0f172d5a authored over 3 years ago by Alice Ryhl <[email protected]>Equivalent to
```
for _ in 0..cnt {
self.put_u8(val);
}
```
but may work faster.
...
* writes low bytes, discards high bytes
* panics if `nbytes` is greater than 8
ab8e3c01a8fae128971cea43eca18da03482cb29 authored over 3 years ago by Alice Ryhl <[email protected]>
f34dc5c3f9e6a3a11e315631055194a733ac1d08 authored over 3 years ago by Taiki Endo <[email protected]>
baaf12d22a844350998d2f60ab3bc78df12ab29a authored over 3 years ago by Gbillou <[email protected]>
ed1d24e57079a86c6201b5fd6be6f789265f0e6a authored over 3 years ago by Taiki Endo <[email protected]>
b89247c713c6c77089cfd722dc4632db4ae4ccb3 authored over 3 years ago by Taiki Endo <[email protected]>
9c770188fdd0029d10bf21d7805f2ff0158c09bb authored over 3 years ago by Noah <[email protected]>
Avoid allocation when `Take` or `Chain` is composed of `Bytes`
objects.
This works now for `...
b9eade12a57b923a54376762ae908da1cff6bcd4 authored over 3 years ago by Stepan Koltsov <[email protected]>
This appears to be the primary cause of significant performance
regressions in the `prost` test...
Make it safer.
2428c152a67c06057a98d9d29b08389cb3429c1f authored almost 4 years ago by Stepan Koltsov <[email protected]>268f6f80b4685b53f57706abc6aef31f46b54738 authored almost 4 years ago by Zettroke <[email protected]>
e4182808df772e331fbd25c48f2f1ab79c0d7c20 authored almost 4 years ago by Alice Ryhl <[email protected]>
8daf43e9bde134e32fc0b8938abc92695f6850d1 authored almost 4 years ago by Christopher Bunn <[email protected]>
7b18c1c076adf9dff4dca28ffc1bbd8759860798 authored almost 4 years ago by Alice Ryhl <[email protected]>
df20a683567909f3e33512a22862b0de954881f4 authored almost 4 years ago by Ralf Jung <[email protected]>
8758a1aba594ad0e721614dff5c523f130f8eb82 authored almost 4 years ago by laizy <[email protected]>
27a0f9ca6e01b953805684eff535a14eaff937d0 authored almost 4 years ago by Ralf Jung <[email protected]>
ed71a7beb3fd0cc67cad08da2643cff2732f6b52 authored almost 4 years ago by Alice Ryhl <[email protected]>
064ad9a1a07e3fb62fb0e8ec17a637f45c0890ed authored almost 4 years ago by Carl Lerche <[email protected]>
ed1d1946604f97c35440536a4ddae970d665ce13 authored almost 4 years ago by Taiki Endo <[email protected]>
e398b0a209dd5f71687eba4920c6ea87e40f0e70 authored about 4 years ago by Arve Knudsen <[email protected]>
The `bytes()` / `bytes_mut()` name implies the method returns the full
set of bytes represented...