| commit | 9f4a472178c3ccf0d6461a6125fa713b140c6d25 | [log] [tgz] |
|---|---|---|
| author | Joshua Liebow-Feeser <joshlf@fuchsia.infra.roller.google.com> | Tue Sep 07 17:21:50 2021 +0000 |
| committer | Copybara-Service <copybara-worker@google.com> | Tue Sep 07 10:23:19 2021 -0700 |
| tree | 4e0b24026c34d316a0fc789e68b040255bf94a70 | |
| parent | 0f13a8ef555a797531f085d2f544d793d57c95ed [diff] |
[roll] Roll fuchsia [zerocopy] Add Unalign, read/write methods Add `Unalign`, which wraps a type and removes any alignment requirement, allowing it to be safely read from any location in memory regardless of alignment. Add `FromBytes` constructors `read`, `read_from_prefix`, and `read_from_suffix`, which read an instance of a `FromBytes` type from a byte slice. Add `AsBytes` methods `write`, `write_to_prefix`, and `write_to_suffix`, which write a copy of `self` to a byte slices. Add `LayoutVerified::<_, T>::read`, which reads a `T` from the underlying bytes. Add `LayoutVerified::<_, T>::write`, which writes a `T` to the underlying bytes. Release zerocopy version 0.6.0. Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/570485 Original-Revision: ea634e91c887c94f5cc272654d3d962290dc2707 GitOrigin-RevId: e708e48dbbc5e8287c8fdcce877d9ffe6742b049 Change-Id: I3c51390f13298b1c11c413ff58c36bfa2621692c
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.