Home | History | Annotate | Download | only in test

Lines Matching refs:bytes

56   virtual size_t Read(uintptr_t addr, uint8_t* buffer, size_t bytes) {
65 if (bytes > bytes_partial_read_) {
66 bytes = bytes_partial_read_;
68 bytes_partial_read_ -= bytes;
71 } else if (bytes > bytes_available) {
72 bytes = bytes_available;
75 if (bytes > 0) {
76 memcpy(buffer, buffer_.data() + offset, bytes);
80 return bytes;
83 void SetReadData(uint8_t* buffer, size_t bytes) {
84 buffer_.resize(bytes);
85 memcpy(buffer_.data(), buffer, bytes);
91 void SetPartialReadAmount(size_t bytes) {
92 if (bytes > buffer_.size()) {
95 bytes_partial_read_ = bytes;