[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
1 file changed
tree: 4e0b24026c34d316a0fc789e68b040255bf94a70
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. firmware
  8. flower
  9. jiri.lock
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

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.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.