Android-cuttlefish cvd tool
Namespaces | Functions
read_exact.h File Reference
#include <stdint.h>
#include <optional>
#include "cuttlefish/io/reader.h"
#include "cuttlefish/io/reader_seeker.h"
#include "cuttlefish/result/expect.h"
#include "cuttlefish/result/result_type.h"
Include dependency graph for read_exact.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cuttlefish
 

Functions

Result< void, int > cuttlefish::ReadExact (Reader &reader, char *buf, size_t size)
 
template<typename T >
Result< T, int > cuttlefish::ReadExactBinary (Reader &reader)
 
Result< void, int > cuttlefish::PReadExact (const ReaderSeeker &reader, char *buf, size_t size, uint64_t offset)
 
Result< bool, int > cuttlefish::ReadExactOrEof (Reader &reader, char *buf, size_t size)
 
template<typename T >
Result< T, int > cuttlefish::PReadExactBinary (const ReaderSeeker &reader, uint64_t offset)
 
template<typename T >
Result< std::optional< T >, int > cuttlefish::ReadExactBinaryOrEof (Reader &reader)