Searched defs:bytes (Results 151 - 175 of 835) sorted by relevance

1234567891011>>

/external/mockftpserver/tags/2.0.1/src/main/java/org/mockftpserver/fake/filesystem/
H A DFileEntry.java34 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 DFileEntry.java34 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 DFileEntry.java34 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 DFileEntry.java34 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 DFileEntry.java34 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 DFileEntry.java34 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 DFileEntry.java34 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/openssh/
H A Dcipher-aesctr.c29 * the counter is of size 'len' bytes and stored in network-byte-order.
69 aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes) argument
74 while ((bytes--) > 0) {
/external/protobuf/java/src/main/java/com/google/protobuf/
H A DLazyFieldLite.java47 private ByteString bytes; field in class:LazyFieldLite
53 public LazyFieldLite(ExtensionRegistryLite extensionRegistry, ByteString bytes) { argument
55 this.bytes = bytes;
68 return value == null && bytes == null;
72 bytes = null;
97 bytes = null;
107 if (bytes == null) {
108 this.bytes = value.bytes;
115 setByteString(ByteString bytes, ExtensionRegistryLite extensionRegistry) argument
[all...]
H A DUtf8.java47 * those that can be roundtrip converted to Strings and back to bytes
49 * Arrays.equals(bytes, new String(bytes, "UTF-8").getBytes("UTF-8"))
57 * bytes in a complete UTF-8 byte sequences can be stored in multiple
72 * complete (no further bytes are needed to complete a character).
82 // Other state values include the partial bytes of the incomplete
83 // character to be decoded in the simplest way: we pack the bytes
97 // to, because partial bytes must always be negative. When building
98 // a state, we ensure that byte1 is negative and subsequent bytes
99 // are valid trailing bytes
108 isValidUtf8(byte[] bytes) argument
121 isValidUtf8(byte[] bytes, int index, int limit) argument
143 partialIsValidUtf8( int state, byte[] bytes, int index, int limit) argument
248 partialIsValidUtf8( byte[] bytes, int index, int limit) argument
260 partialIsValidUtf8NonAscii( byte[] bytes, int index, int limit) argument
340 incompleteStateFor(byte[] bytes, int index, int limit) argument
[all...]
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
H A DInternalNano.java69 * To get around this, protoc instead embeds the UTF-8 bytes into the
75 * in each value. This is much less efficient than just embedding the bytes
78 * generates a string literal corresponding to the bytes. The easiest way
83 * So we have a string literal which represents a set of bytes which
88 public static String stringDefaultValue(String bytes) { argument
90 return new String(bytes.getBytes("ISO-8859-1"), "UTF-8");
100 * Helper called by generated code to construct default values for bytes
103 * This is a lot like {@link #stringDefaultValue}, but for bytes fields.
105 * embed raw bytes as a string literal with ISO-8859-1 encoding.
107 public static byte[] bytesDefaultValue(String bytes) { argument
[all...]
H A DMessageNanoPrinter.java126 // bytes is special since it's not repeated, but is represented by an array
242 private static void appendQuotedBytes(byte[] bytes, StringBuffer builder) { argument
243 if (bytes == null) {
249 for (int i = 0; i < bytes.length; ++i) {
250 int ch = bytes[i] & 0xff;
/external/protobuf/java/src/test/java/com/google/protobuf/
H A DIsValidUtf8Test.java46 * bytes and will return false for any sequence that will not round trip.
90 // Bad trailing bytes
127 private byte[] toByteArray(int... bytes) { argument
128 byte[] realBytes = new byte[bytes.length];
129 for (int i = 0; i < bytes.length; i++) {
130 realBytes[i] = (byte) bytes[i];
135 private ByteString toByteString(int... bytes) { argument
136 return ByteString.copyFrom(toByteArray(bytes));
139 private void assertValidUtf8(int[] bytes, boolean not) { argument
140 byte[] realBytes = toByteArray(bytes);
159 assertValidUtf8(int... bytes) argument
163 assertInvalidUtf8(int... bytes) argument
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
H A DMemoryDeferredOutputStream.java48 @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 DUtf8Utils.java40 * @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/strace/
H A Dsock.c66 unsigned char *bytes; local
200 bytes = (unsigned char *) &ifr.ifr_hwaddr.sa_data;
202 bytes[0], bytes[1], bytes[2],
203 bytes[3], bytes[4], bytes[5]);
/external/toybox/toys/posix/
H A Dxargs.c19 -s Size in bytes per command line
48 long entries, bytes;
52 // If out==NULL count TT.bytes and TT.entries, stopping at max.
81 if (++TT.bytes >= TT.max_bytes && TT.max_bytes) return save;
96 TT.bytes += strlen(data)+1;
97 if (TT.max_bytes && TT.bytes >= TT.max_bytes) return data;
110 int entries, bytes, done = 0, status; local
122 for (entries = 0, bytes = -1; entries < toys.optc; entries++, bytes++)
123 bytes
[all...]
/external/vboot_reference/firmware/stub/
H A Dvboot_api_stub_stream.c49 VbError_t VbExStreamRead(VbExStream_t stream, uint32_t bytes, void *buffer) argument
59 if (bytes % LBA_BYTES)
63 sectors = bytes / LBA_BYTES;
/external/apache-http/src/org/apache/commons/codec/net/
H A DQCodec.java137 protected byte[] doEncoding(byte[] bytes) throws EncoderException { argument
138 if (bytes == null) {
141 byte[] data = QuotedPrintableCodec.encodeQuotedPrintable(PRINTABLE_CHARS, bytes);
152 protected byte[] doDecoding(byte[] bytes) throws DecoderException { argument
153 if (bytes == null) {
157 for (int i = 0; i < bytes.length; i++) {
158 if (bytes[i] == UNDERSCORE) {
164 byte[] tmp = new byte[bytes.length];
165 for (int i = 0; i < bytes.length; i++) {
166 byte b = bytes[
[all...]
H A DQuotedPrintableCodec.java128 * Encodes an array of bytes into an array of quoted-printable 7-bit characters. Unsafe characters are escaped.
137 * @param bytes
138 * array of bytes to be encoded
139 * @return array of bytes containing quoted-printable data
141 public static final byte[] encodeQuotedPrintable(BitSet printable, byte[] bytes) { argument
142 if (bytes == null) {
149 for (int i = 0; i < bytes.length; i++) {
150 int b = bytes[i];
164 * Decodes an array quoted-printable characters into an array of original bytes. Escaped characters are converted
172 * @param bytes
178 decodeQuotedPrintable(byte[] bytes) argument
215 encode(byte[] bytes) argument
234 decode(byte[] bytes) argument
[all...]
/external/bison/lib/
H A Dbitsetv.c33 size_t bytes; local
37 /* Determine number of bytes for each set. */
38 bytes = bitset_bytes (type, n_bits);
41 if (BITSET_SIZE_MAX / (sizeof (bitset) + bytes) <= n_vecs)
45 vector_bytes = (n_vecs + 1) * sizeof (bitset) + bytes - 1;
46 vector_bytes -= vector_bytes % bytes;
47 bsetv = xcalloc (1, vector_bytes + bytes * n_vecs);
51 bsetv[i] = (bitset) (void *) ((char *) bsetv + vector_bytes + i * bytes);
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
H A DJcaContentSignerBuilder.java115 public void write(byte[] bytes, int off, int len) argument
120 sig.update(bytes, off, len);
128 public void write(byte[] bytes) argument
133 sig.update(bytes);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
H A DASN1GeneralizedTime.java138 byte[] bytes)
140 this.time = bytes;
137 ASN1GeneralizedTime( byte[] bytes) argument
H A DASN1InputStream.java116 byte[] bytes)
119 if (Streams.readFully(this, bytes) != bytes.length)
126 * build an object given its tag and the number of bytes to construct it from.
347 throw new IOException("DER length more than 4 bytes: " + size);
115 readFully( byte[] bytes) argument
H A DASN1OutputStream.java52 void write(byte[] bytes) argument
55 os.write(bytes);
58 void write(byte[] bytes, int off, int len) argument
61 os.write(bytes, off, len);
66 byte[] bytes)
70 writeLength(bytes.length);
71 write(bytes);
107 void writeEncoded(int flags, int tagNo, byte[] bytes) argument
111 writeLength(bytes.length);
112 write(bytes);
64 writeEncoded( int tag, byte[] bytes) argument
[all...]

Completed in 589 milliseconds

1234567891011>>