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

1 2 3 4 5 6 7

  /art/compiler/
buffered_output_stream.cc 26 bool BufferedOutputStream::WriteFully(const void* buffer, int64_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, int64_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, int64_t byte_count) {
29 return file_->WriteFully(buffer, byte_count);
file_output_stream.h 32 virtual bool WriteFully(const void* buffer, int64_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;
fd_file.cc 76 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const {
77 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset));
92 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) {
93 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset));
109 bool FdFile::ReadFully(void* buffer, int64_t byte_count) {
111 while (byte_count > 0) {
112 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count));
116 byte_count -= bytes_read; // Reduce the number of remaining bytes.
122 bool FdFile::WriteFully(const void* buffer, int64_t byte_count) {
124 while (byte_count > 0)
    [all...]
fd_file.h 51 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const;
54 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
62 bool ReadFully(void* buffer, int64_t byte_count);
63 bool WriteFully(const void* buffer, int64_t byte_count);
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);
  /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,
  /bionic/libc/include/
malloc.h 30 extern void* malloc(size_t byte_count) __mallocfunc __wur;
32 extern void* realloc(void* p, size_t byte_count) __wur;
35 extern void* memalign(size_t alignment, size_t byte_count) __mallocfunc __wur;
38 extern void* valloc(size_t byte_count) __mallocfunc __wur;
39 extern void* pvalloc(size_t byte_count) __mallocfunc __wur;
  /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,
  /external/chromium/net/socket/
client_socket.cc 20 NetLogBytesTransferredParameter(int byte_count, const char* bytes);
31 int byte_count, const char* transferred_bytes)
32 : byte_count_(byte_count),
35 hex_encoded_bytes_ = base::HexEncode(transferred_bytes, byte_count);
42 dict->SetInteger("byte_count", byte_count_);
149 int byte_count,
153 params = new NetLogBytesTransferredParameter(byte_count, bytes);
155 params = new NetLogBytesTransferredParameter(byte_count, NULL);
  /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
  /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/qemu/distrib/jpeg-6b/
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)
  /art/runtime/
mem_map.h 33 // Request an anonymous region of length 'byte_count' and a requested base address.
41 static MemMap* MapAnonymous(const char* ashmem_name, byte* addr, size_t byte_count, int prot);
47 static MemMap* MapFile(size_t byte_count, int prot, int flags, int fd, off_t start) {
48 return MapFileAtAddress(NULL, byte_count, prot, flags, fd, start, false);
57 byte* addr, size_t byte_count, int prot, int flags, int fd, off_t start, bool reuse);
  /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/chrome/browser/extensions/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);
145 int byte_count,
148 byte_count(byte_count),

Completed in 438 milliseconds

1 2 3 4 5 6 7