/external/mockftpserver/tags/2.0-rc1/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | FileEntry.java | 34 private byte[] bytes = EMPTY;
field in class:FileEntry 35 //private Object bytes = EMPTY;
76 * @return the file size in bytes
85 * @param contents - the String whose bytes are used as the contents
98 // Copy the bytes[] to guard against subsequent modification of the source array
127 byte[] initialContents = (append) ? bytes : EMPTY;
149 clone.setContents(bytes);
161 return (out != null) ? out.toByteArray() : bytes;
170 this.bytes = contents;
|
/external/mockftpserver/tags/2.0-rc3/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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
126 byte[] initialContents = (append) ? bytes : EMPTY;
148 clone.setContents(bytes);
160 return (out != null) ? out.toByteArray() : bytes;
169 this.bytes = contents;
|
/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/mockftpserver/tags/2.0.2/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/mockftpserver/tags/2.1/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | 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/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | IsValidUtf8Test.java | 52 * bytes and will return false for any sequence that will not round trip. 100 // Bad trailing bytes 135 private byte[] toByteArray(int... bytes) { argument 136 byte[] realBytes = new byte[bytes.length]; 137 for (int i = 0; i < bytes.length; i++) { 138 realBytes[i] = (byte) bytes[i]; 143 private void assertValidUtf8(ByteStringFactory factory, int[] bytes, boolean not) { argument 144 byte[] realBytes = toByteArray(bytes); 146 assertTrue(not ^ Utf8.isValidUtf8(realBytes, 0, bytes.length)); 148 ByteString sub = leaf.substring(0, bytes 162 assertValidUtf8(int... bytes) argument 168 assertInvalidUtf8(int... bytes) argument [all...] |
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/ |
H A D | MessageNanoPrinter.java | 127 // bytes is special since it's not repeated, but is represented by an array 256 private static void appendQuotedBytes(byte[] bytes, StringBuffer builder) { argument 257 if (bytes == null) { 263 for (int i = 0; i < bytes.length; ++i) { 264 int ch = bytes[i] & 0xff;
|
/external/skia/include/core/ |
H A D | SkData.h | 19 * but the actual ptr that is returned (by data() or bytes()) is guaranteed 25 * Returns the number of bytes stored. 40 const uint8_t* bytes() const { function in class:final 59 * Returns the actual number of bytes copied, after clamping offset and 61 * only the computed number of bytes is returned. 91 * (a null-terminated array of bytes). The returned SkData will have size() 142 * Attempt to read size bytes into a SkData. If the read succeeds, return the data,
|
/external/skia/src/codec/ |
H A D | SkJpegUtility.cpp | 42 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); local 45 if (bytes == 0) { 53 src->bytes_in_buffer = bytes; 58 * Skip a certain number of bytes in the stream 62 size_t bytes = (size_t) numBytes; local 64 if (bytes > src->bytes_in_buffer) { 65 size_t bytesToSkip = bytes - src->bytes_in_buffer; 102 size_t bytes = static_cast<size_t>(num_bytes); local 103 if(bytes > src->bytes_in_buffer) { 107 src->next_input_byte += bytes; [all...] |
/external/skia/src/core/ |
H A D | SkBigPicture.cpp | 59 size_t bytes = sizeof(*this) + fRecord->bytesUsed() + fApproxBytesUsedBySubPictures; local 60 if (fBBH) { bytes += fBBH->bytesUsed(); } 61 return bytes;
|
/external/skia/src/opts/ |
H A D | SkChecksum_opts.h | 31 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t seed) { argument 36 if (bytes >= 24) { 38 // to hash 8 bytes per step. Both 3 and independent are important: 43 size_t steps = bytes/24; 50 bytes %= 24; 54 SkASSERT(bytes < 24); 55 if (bytes >= 16) { 57 bytes -= 8; 61 SkASSERT(bytes < 16); 62 if (bytes [all...] |
/external/skqp/include/core/ |
H A D | SkData.h | 19 * but the actual ptr that is returned (by data() or bytes()) is guaranteed 25 * Returns the number of bytes stored. 40 const uint8_t* bytes() const { function in class:final 59 * Returns the actual number of bytes copied, after clamping offset and 61 * only the computed number of bytes is returned. 91 * (a null-terminated array of bytes). The returned SkData will have size() 142 * Attempt to read size bytes into a SkData. If the read succeeds, return the data,
|
/external/skqp/src/codec/ |
H A D | SkJpegUtility.cpp | 42 size_t bytes = src->fStream->read(src->fBuffer, skjpeg_source_mgr::kBufferSize); local 45 if (bytes == 0) { 53 src->bytes_in_buffer = bytes; 58 * Skip a certain number of bytes in the stream 62 size_t bytes = (size_t) numBytes; local 64 if (bytes > src->bytes_in_buffer) { 65 size_t bytesToSkip = bytes - src->bytes_in_buffer; 102 size_t bytes = static_cast<size_t>(num_bytes); local 103 if(bytes > src->bytes_in_buffer) { 107 src->next_input_byte += bytes; [all...] |
/external/skqp/src/core/ |
H A D | SkBigPicture.cpp | 59 size_t bytes = sizeof(*this) + fRecord->bytesUsed() + fApproxBytesUsedBySubPictures; local 60 if (fBBH) { bytes += fBBH->bytesUsed(); } 61 return bytes;
|
/external/skqp/src/opts/ |
H A D | SkChecksum_opts.h | 31 /*not static*/ inline uint32_t hash_fn(const void* vdata, size_t bytes, uint32_t seed) { argument 36 if (bytes >= 24) { 38 // to hash 8 bytes per step. Both 3 and independent are important: 43 size_t steps = bytes/24; 50 bytes %= 24; 54 SkASSERT(bytes < 24); 55 if (bytes >= 16) { 57 bytes -= 8; 61 SkASSERT(bytes < 16); 62 if (bytes [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/ |
H A D | MemoryDeferredOutputStream.java | 48 @Override public void write(byte[] bytes) throws IOException { argument 49 write(bytes, 0, bytes.length); 52 @Override public void write(byte[] bytes, int offset, int length) throws IOException { argument 57 System.arraycopy(bytes, offset + written, currentBuffer, currentPosition, toWrite);
|
/external/smali/util/src/main/java/org/jf/util/ |
H A D | Utf8Utils.java | 40 * @return non-null; the UTF-8 bytes for it 44 byte[] bytes = new byte[len * 3]; // Avoid having to reallocate. 50 bytes[outAt] = (byte) c; 53 bytes[outAt] = (byte) (((c >> 6) & 0x1f) | 0xc0); 54 bytes[outAt + 1] = (byte) ((c & 0x3f) | 0x80); 57 bytes[outAt] = (byte) (((c >> 12) & 0x0f) | 0xe0); 58 bytes[outAt + 1] = (byte) (((c >> 6) & 0x3f) | 0x80); 59 bytes[outAt + 2] = (byte) ((c & 0x3f) | 0x80); 65 System.arraycopy(bytes, 0, result, 0, outAt); 78 * Converts an array of UTF-8 bytes int 85 utf8BytesToString(byte[] bytes, int start, int length) argument 178 utf8BytesWithUtf16LengthToString(@onnull byte[] bytes, int start, int utf16Length) argument 191 utf8BytesWithUtf16LengthToString(@onnull byte[] bytes, int start, int utf16Length, @Nullable int[] readLength) argument [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
H A D | InputOutputExceptionTest.java | 54 public int read(byte[] bytes, int i, int i1) throws IOException { argument
|
/external/strace/ |
H A D | xmalloc.c | 78 size_t bytes = nmemb * size; local 81 size && bytes / size != nmemb) 84 void *p = realloc(ptr, bytes);
|
/external/syslinux/com32/libutil/ |
H A D | base64.c | 80 int len, bytes; local 86 bytes = genbase64(buf, argv[i], len, BASE64_MIME | BASE64_PAD); 87 printf(" MIME: \"%s\" (%d)\n", buf, bytes); 88 bytes = genbase64(buf, argv[i], len, BASE64_SAFE); 89 printf(" Safe: \"%s\" (%d)\n", buf, bytes);
|
/external/syslinux/efi/ |
H A D | diskio.c | 12 sector_t lba, UINTN bytes, void *buf) 14 return uefi_call_wrapper(bio->ReadBlocks, 5, bio, id, lba, bytes, buf); 18 sector_t lba, UINTN bytes, void *buf) 20 return uefi_call_wrapper(bio->WriteBlocks, 5, bio, id, lba, bytes, buf); 29 UINTN bytes = count * disk->sector_size; local 32 status = write_blocks(bio, disk->disk_number, lba, bytes, buf); 34 status = read_blocks(bio, disk->disk_number, lba, bytes, buf); 11 read_blocks(EFI_BLOCK_IO *bio, uint32_t id, sector_t lba, UINTN bytes, void *buf) argument 17 write_blocks(EFI_BLOCK_IO *bio, uint32_t id, sector_t lba, UINTN bytes, void *buf) argument
|