/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
FileEntry.java | 34 private byte[] bytes = EMPTY;
field in class:FileEntry 75 * @return the file size in bytes
84 * @param contents - the String whose bytes are used as the contents
97 // Copy the bytes[] to guard against subsequent modification of the source array
130 byte[] initialContents = (append) ? bytes : EMPTY;
164 return (out != null) ? out.toByteArray() : bytes;
173 this.bytes = contents;
|
/external/nanopb-c/tests/encode_unittests/ |
encode_unittests.c | 39 * Y is a string, which may contain null bytes. Null terminator is ignored. 172 struct { size_t size; uint8_t bytes[5]; } value = {5, {'x', 'y', 'z', 'z', 'y'}}; member in struct:__anon30731 266 COMMENT("Test pb_encode with bytes message.")
|
/external/perfetto/src/perfetto_cmd/ |
rate_limiter.cc | 111 bool RateLimiter::OnTraceDone(const Args& args, bool success, size_t bytes) { 129 state_.set_total_bytes_uploaded(state_.total_bytes_uploaded() + bytes); 166 ssize_t bytes = PERFETTO_EINTR(read(in_fd.get(), &buf, sizeof(buf))); local 167 if (bytes <= 0) 169 return state->ParseFromArray(&buf, static_cast<int>(bytes));
|
/external/protobuf/conformance/ |
conformance_cpp.cc | 159 uint32_t bytes; local 161 if (!CheckedRead(STDIN_FILENO, &bytes, sizeof(uint32_t))) { 166 serialized_input.resize(bytes); 168 if (!CheckedRead(STDIN_FILENO, (char*)serialized_input.c_str(), bytes)) { 181 bytes = serialized_output.size(); 182 CheckedWrite(STDOUT_FILENO, &bytes, sizeof(uint32_t)); 183 CheckedWrite(STDOUT_FILENO, serialized_output.c_str(), bytes);
|
/external/protobuf/javamicro/src/main/java/com/google/protobuf/micro/ |
ByteStringMicro.java | 36 * Immutable array of bytes. 42 private final byte[] bytes; field in class:ByteStringMicro 44 private ByteStringMicro(final byte[] bytes) { 45 this.bytes = bytes; 54 return bytes[index]; 58 * Gets the number of bytes. 61 return bytes.length; 68 return bytes.length == 0; 80 * Copies the given bytes into a {@code ByteStringMicro} [all...] |
/external/python/cpython2/Modules/_ctypes/libffi/src/cris/ |
ffi.c | 162 unsigned bytes = 0; local 192 if (((*ptr)->alignment - 1) & bytes) 193 bytes = ALIGN (bytes, (*ptr)->alignment); 198 bytes += (*ptr)->size; 199 bytes += sizeof (void *); 204 bytes += 8; 206 bytes += 4; 210 bytes += STACK_ARG_SIZE ((*ptr)->size); 213 cif->bytes = bytes [all...] |
/external/python/cpython2/Modules/_ctypes/libffi/src/metag/ |
ffi.c | 103 unsigned i, bytes = 0; local 114 if (((*ptr)->alignment - 1) & bytes) 115 bytes = ALIGN(bytes, (*ptr)->alignment); 117 bytes += ALIGN((*ptr)->size, 4); 121 bytes = ALIGN(bytes, 8); 125 bytes += sizeof(void*); 128 bytes = ALIGN(bytes, 8) [all...] |
/external/python/cpython2/Modules/_ctypes/libffi_msvc/ |
ffi.c | 108 /* On Win64, if a single argument takes more than 8 bytes, 122 if (argp - stack > ecif->cif->bytes) 146 otherwise, put the 4- or 8-bytes integer type. */ 218 return ffi_call_x86(ffi_prep_args, &ecif, cif->bytes, 224 return ffi_call_AMD64(ffi_prep_args, &ecif, cif->bytes, 382 /* On Win64, if a single argument takes more than 8 bytes, 409 short bytes; local 417 bytes = 0; 420 bytes = cif->bytes; [all...] |
win64.asm | 70 bytes$ = 48 89 mov eax, DWORD PTR bytes$[rbp]
|
/external/python/cpython3/Modules/_ctypes/libffi/src/cris/ |
ffi.c | 162 unsigned bytes = 0; local 192 if (((*ptr)->alignment - 1) & bytes) 193 bytes = ALIGN (bytes, (*ptr)->alignment); 198 bytes += (*ptr)->size; 199 bytes += sizeof (void *); 204 bytes += 8; 206 bytes += 4; 210 bytes += STACK_ARG_SIZE ((*ptr)->size); 213 cif->bytes = bytes [all...] |
/external/python/cpython3/Modules/_ctypes/libffi/src/metag/ |
ffi.c | 103 unsigned i, bytes = 0; local 114 if (((*ptr)->alignment - 1) & bytes) 115 bytes = ALIGN(bytes, (*ptr)->alignment); 117 bytes += ALIGN((*ptr)->size, 4); 121 bytes = ALIGN(bytes, 8); 125 bytes += sizeof(void*); 128 bytes = ALIGN(bytes, 8) [all...] |
/external/python/cpython3/Modules/_ctypes/libffi_msvc/ |
ffi.c | 127 /* On Win64, if a single argument takes more than 8 bytes, 141 if (argp >= stack && (unsigned)(argp - stack) > ecif->cif->bytes) 165 otherwise, put the 4- or 8-bytes integer type. */ 237 return ffi_call_x86(ffi_prep_args, &ecif, cif->bytes, 242 /* If a single argument takes more than 8 bytes, 253 return ffi_call_AMD64(ffi_prep_args, &ecif, cif->bytes, 411 /* On Win64, if a single argument takes more than 8 bytes, 438 short bytes; local 446 bytes = 0; 449 bytes = cif->bytes [all...] |
win64.asm | 70 bytes$ = 48 89 mov eax, DWORD PTR bytes$[rbp]
|
/external/python/cpython3/Modules/ |
grpmodule.c | 150 PyObject *bytes, *retval = NULL; local 152 if ((bytes = PyUnicode_EncodeFSDefault(name)) == NULL) 154 if (PyBytes_AsStringAndSize(bytes, &name_chars, NULL) == -1) 163 Py_DECREF(bytes);
|
pwdmodule.c | 157 PyObject *bytes, *retval = NULL; local 159 if ((bytes = PyUnicode_EncodeFSDefault(arg)) == NULL) 161 if (PyBytes_AsStringAndSize(bytes, &name, NULL) == -1) 170 Py_DECREF(bytes);
|
spwdmodule.c | 133 PyObject *bytes, *retval = NULL; local 135 if ((bytes = PyUnicode_EncodeFSDefault(arg)) == NULL) 137 if (PyBytes_AsStringAndSize(bytes, &name, NULL) == -1) 148 Py_DECREF(bytes);
|
/external/skia/src/android/ |
SkBitmapRegionCodec.cpp | 96 size_t bytes = outInfo.computeByteSize(bitmap->rowBytes()); local 97 memset(pixels, 0, bytes);
|
/external/skqp/src/android/ |
SkBitmapRegionCodec.cpp | 99 size_t bytes = outInfo.computeByteSize(bitmap->rowBytes()); local 100 memset(pixels, 0, bytes);
|
/external/squashfs-tools/kernel/fs/squashfs/ |
cache.c | 290 * Copy upto length bytes from cache entry to buffer starting at offset bytes 291 * into the cache entry. If there's not length bytes then copy the number of 292 * bytes available. In all cases return the number of bytes copied. 307 int bytes = min_t(int, entry->length - offset, local 310 if (bytes >= remaining) { 316 memcpy(buffer, buff, bytes); 317 buffer += bytes; 318 remaining -= bytes; 336 int bytes, copied = length; local [all...] |
/external/squashfs-tools/squashfs-tools/ |
gzip_wrapper.c | 457 unsigned long bytes = outsize; local 459 res = uncompress(d, &bytes, s, size); 462 return (int) bytes;
|
unsquash-1.c | 61 int bytes = lookup_entry(inode_table_hash, start); local 62 char *block_ptr = inode_table + bytes + offset; 67 if(bytes == -1) 212 int bytes; local 245 bytes = lookup_entry(directory_table_hash, start); 246 if(bytes == -1) 250 bytes += (*i)->offset; 251 size = (*i)->data + bytes; 253 while(bytes < size) { 256 memcpy(&sdirh, directory_table + bytes, sizeof(sdirh)) [all...] |
unsquash-2.c | 46 int bytes = SQUASHFS_FRAGMENT_BYTES_2(sBlk.s.fragments); local 59 fragment_table = malloc(bytes); 90 bytes & (SQUASHFS_METADATA_SIZE - 1); 132 int bytes = lookup_entry(inode_table_hash, start); local 133 char *block_ptr = inode_table + bytes + offset; 138 if(bytes == -1)
|
unsquash-4.c | 34 int bytes = SQUASHFS_FRAGMENT_BYTES(sBlk.s.fragments); local 47 fragment_table = malloc(bytes); 64 bytes & (SQUASHFS_METADATA_SIZE - 1); 101 int bytes = lookup_entry(inode_table_hash, start); local 102 char *block_ptr = inode_table + bytes + offset; 107 if(bytes == -1) 258 int bytes; local 291 bytes = lookup_entry(directory_table_hash, start); 293 if(bytes == -1) 297 bytes += (*i)->offset 357 int bytes = SQUASHFS_ID_BYTES(sBlk.s.no_ids); local [all...] |
/external/swiftshader/src/D3D8/ |
Direct3DSurface8.cpp | 282 int Direct3DSurface8::bytes(D3DFORMAT format) function in class:D3D8::Direct3DSurface8 284 return Surface::bytes(translateFormat(format));
|
/external/syslinux/com32/modules/ |
pmload.c | 144 int bytes = strlen(*argp) + 1; /* Including final null */ local 146 memcpy(sfp, *argp, bytes); 147 sfp += bytes; 148 sfa += bytes;
|