[roll] Roll fuchsia [tee] Introduce ErrorWithSize

This is a simple abstraction packaging an error with size, useful for
operations that return a required minimum output size in the case of
Error::ShortBuffer.

While we're at it we revisit the related decision to have structured the
inner get_object_buffer_attribute() to return the written subslice of
the provided output buffer parameter in the case of success. While it's
the opinion of the author that returning the size of what was written
and leaving the synthesis of the written subslice as a boilerplate-y
exercise for the user is a particularly C-flavored API, that is the
flavor of API that we're ultimately implementing. (Plus the Rust
standard library seems to have capitalized a bit on this with the
definition of the io::Write trait.) So we update the success parameter
to just be a usize of how much was written, which will also ease the
implementation of several API bits to come.

Original-Bug: 360942581
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1215425
Original-Revision: d78d3ad43b7e28e3b1d15b97337d6cb04239678c
GitOrigin-RevId: 8133974d3966df2e6600a502bd0221bf0e0eb660
Change-Id: I11a149e8315eeb432c3e49170d005eb491bb13e4
1 file changed
tree: efdd8136e0fee1fc4ce6188079efc0c5a9703534
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
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 in one of the communication channels documented at get involved.

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.