HomeSort by relevance Sort by last modified time
    Searched refs:byte_count (Results 1 - 25 of 113) sorted by null

1 2 3 4 5

  /art/compiler/
buffered_output_stream.cc 26 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) {
27 if (byte_count > kBufferSize) {
29 return out_->WriteFully(buffer, byte_count);
31 if (used_ + byte_count > kBufferSize) {
38 memcpy(&buffer_[used_], src, byte_count);
39 used_ += byte_count;
vector_output_stream.h 34 bool WriteFully(const void* buffer, size_t byte_count) {
37 vector_.insert(vector_.end(), &start[0], &start[byte_count]);
38 offset_ += byte_count;
40 off_t new_offset = offset_ + byte_count;
42 memcpy(&vector_[offset_], buffer, byte_count);
file_output_stream.cc 28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) {
29 return file_->WriteFully(buffer, byte_count);
file_output_stream.h 32 virtual bool WriteFully(const void* buffer, size_t byte_count);
  /art/runtime/base/unix_file/
null_file.cc 36 int64_t NullFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
58 return byte_count;
string_file.cc 38 int64_t StringFile::Read(char *buf, int64_t byte_count, int64_t offset) const {
40 CHECK_GE(byte_count, 0);
46 const int64_t available_bytes = std::min(byte_count, GetLength() - offset);
66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) {
68 CHECK_GE(byte_count, 0);
74 if (byte_count == 0) {
86 data_.replace(offset, byte_count, buf, byte_count);
87 return byte_count;
null_file.h 39 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const;
42 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
random_access_file.h 43 // Reads 'byte_count' bytes into 'buf' starting at offset 'offset' in the
45 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const = 0;
56 // Writes 'byte_count' bytes from 'buf' starting at offset 'offset' in the
60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
string_file.h 42 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const;
45 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
fd_file.h 54 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const WARN_UNUSED;
57 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) WARN_UNUSED;
76 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED;
77 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
fd_file.cc 138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset));
142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset));
163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset));
167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset));
181 bool FdFile::ReadFully(void* buffer, size_t byte_count) {
183 while (byte_count > 0) {
184 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count));
190 byte_count -= bytes_read; // Reduce the number of remaining bytes
    [all...]
  /external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
radeon_llvm_emit.h 38 unsigned char ** bytes, unsigned * byte_count,
44 unsigned * byte_count,
  /external/mesa3d/src/gallium/drivers/radeon/
radeon_llvm_emit.h 38 unsigned char ** bytes, unsigned * byte_count,
44 unsigned * byte_count,
  /external/chromium_org/net/udp/
udp_net_log_parameters.cc 16 base::Value* NetLogUDPDataTranferCallback(int byte_count,
21 dict->SetInteger("byte_count", byte_count);
23 dict->SetString("hex_encoded_bytes", base::HexEncode(bytes, byte_count));
39 int byte_count,
43 return base::Bind(&NetLogUDPDataTranferCallback, byte_count, bytes, address);
udp_net_log_parameters.h 19 int byte_count,
  /art/runtime/base/
hex_dump.h 32 HexDump(const void* address, size_t byte_count, bool show_actual_addresses, const char* prefix)
33 : address_(address), byte_count_(byte_count), show_actual_addresses_(show_actual_addresses),
hex_dump.cc 55 size_t byte_count = byte_count_; local
57 while (byte_count > 0) {
71 size_t count = std::min(byte_count, 16 - gap);
104 byte_count -= count;
106 if (byte_count > 0) {
  /external/chromium_org/chromeos/dbus/
pipe_reader.cc 50 void PipeReader::OnDataReady(int byte_count) {
51 DVLOG(1) << "OnDataReady byte_count " << byte_count;
52 if (byte_count <= 0) {
57 AcceptData(io_buffer_->data(), byte_count);
75 void PipeReaderForString::AcceptData(const char *data, int byte_count) {
76 data_.append(data, byte_count);
  /bionic/libc/include/
malloc.h 30 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
32 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
35 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /bionic/libc/private/
ThreadLocalBuffer.h 52 #define LOCAL_INIT_THREAD_LOCAL_BUFFER(type, name, byte_count) \
56 name ## _tls_buffer = reinterpret_cast<type>(calloc(1, byte_count)); \
59 const size_t name ## _tls_buffer_size __attribute__((unused)) = byte_count
  /development/ndk/platforms/android-L/include/
malloc.h 30 extern void* malloc(size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(1)));
32 extern void* realloc(void* p, size_t byte_count) __wur __attribute__((alloc_size(2)));
35 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur __attribute__((alloc_size(2)));
  /external/jpeg/
jmemansi.c 99 long file_offset, long byte_count)
103 if (JFREAD(info->temp_file, buffer_address, byte_count)
104 != (size_t) byte_count)
112 long file_offset, long byte_count)
116 if (JFWRITE(info->temp_file, buffer_address, byte_count)
117 != (size_t) byte_count)
jmem-android.c 101 long file_offset, long byte_count)
105 if (JFREAD(info->temp_file, buffer_address, byte_count)
106 != (size_t) byte_count)
114 long file_offset, long byte_count)
118 if (JFWRITE(info->temp_file, buffer_address, byte_count)
119 != (size_t) byte_count)
  /external/chromium_org/ppapi/thunk/
ppb_image_data_api.h 25 virtual int32_t GetSharedMemory(int* handle, uint32_t* byte_count) = 0;
  /external/chromium_org/extensions/browser/api/socket/
socket.cc 40 int byte_count,
43 write_queue_.push(WriteRequest(io_buffer, byte_count, callback));
54 DCHECK(request.byte_count >= request.bytes_written);
59 request.byte_count - request.bytes_written,
73 if (request.bytes_written < request.byte_count) {
77 DCHECK(request.bytes_written == request.byte_count);
143 int byte_count,
146 byte_count(byte_count),

Completed in 241 milliseconds

1 2 3 4 5