/external/mockftpserver/tags/2.2/src/main/java/org/mockftpserver/fake/command/ |
H A D | RetrCommandHandler.java | 68 byte[] bytes = null;
70 bytes = IoUtil.readBytes(input);
86 bytes = convertLfToCrLf(bytes);
88 session.sendData(bytes, bytes.length);
96 * @param bytes - the bytes to be converted
99 protected byte[] convertLfToCrLf(byte[] bytes) {
argument 102 for (int i = 0; i < bytes [all...] |
/external/mockftpserver/tags/2.3/src/main/java/org/mockftpserver/fake/command/ |
H A D | RetrCommandHandler.java | 68 byte[] bytes = null;
70 bytes = IoUtil.readBytes(input);
86 bytes = convertLfToCrLf(bytes);
88 session.sendData(bytes, bytes.length);
96 * @param bytes - the bytes to be converted
99 protected byte[] convertLfToCrLf(byte[] bytes) {
argument 102 for (int i = 0; i < bytes [all...] |
/external/mockftpserver/tags/2.4/src/main/java/org/mockftpserver/fake/command/ |
H A D | RetrCommandHandler.java | 68 byte[] bytes = null;
70 bytes = IoUtil.readBytes(input);
86 bytes = convertLfToCrLf(bytes);
88 session.sendData(bytes, bytes.length);
96 * @param bytes - the bytes to be converted
99 protected byte[] convertLfToCrLf(byte[] bytes) {
argument 102 for (int i = 0; i < bytes [all...] |
/external/mockftpserver/tags/2.5/src/main/java/org/mockftpserver/fake/command/ |
H A D | RetrCommandHandler.java | 68 byte[] bytes = null;
70 bytes = IoUtil.readBytes(input);
86 bytes = convertLfToCrLf(bytes);
88 session.sendData(bytes, bytes.length);
96 * @param bytes - the bytes to be converted
99 protected byte[] convertLfToCrLf(byte[] bytes) {
argument 102 for (int i = 0; i < bytes [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
H A D | IsoTypeReader.java | 110 byte[] bytes = new byte[4]; 111 bb.get(bytes); 114 result |= ((bytes[0] << 24) & 0xFF000000); 115 result |= ((bytes[1] << 16) & 0xFF0000); 116 result |= ((bytes[2] << 8) & 0xFF00); 117 result |= ((bytes[3]) & 0xFF); 123 byte[] bytes = new byte[2]; 124 bb.get(bytes); 126 result |= ((bytes[0] << 8) & 0xFF00); 127 result |= ((bytes[ [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
H A D | Pipeline.java | 35 * Input class for the pipelined parser. Buffer all bytes read from the socket 87 byte[] bytes; field in class:Pipeline.Buffer 93 public Buffer(byte[] bytes, int length) { argument 96 this.bytes = bytes; 100 int retval = bytes[ptr++] & 0xFF; 131 public void write(byte[] bytes, int start, int length) throws IOException { argument 134 Buffer buff = new Buffer(bytes, length); 142 public void write(byte[] bytes) throws IOException { argument 145 Buffer buff = new Buffer(bytes, byte [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
H A D | QuotedPrintableCodec.java | 128 * 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...] |
H A D | URLCodec.java | 109 * Encodes an array of bytes into an array of URL safe 7-bit 113 * @param bytes array of bytes to convert to URL safe characters 114 * @return array of bytes containing URL safe characters 116 public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) argument 118 if (bytes == null) { 126 for (int i = 0; i < bytes.length; i++) { 127 int b = bytes[i]; 152 * original bytes. Escaped characters are converted back to their 155 * @param bytes arra 159 decodeUrl(byte[] bytes) argument 196 encode(byte[] bytes) argument 210 decode(byte[] bytes) argument [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
H A D | Util.java | 16 // 32 bytes from sha-256 -> 64 hex chars. 18 // 20 bytes from sha-1 -> 40 chars. 28 public static String sha256BytesToHex(byte[] bytes) { argument 29 return bytesToHex(bytes, SHA_256_CHARS); 35 public static String sha1BytesToHex(byte[] bytes) { argument 36 return bytesToHex(bytes, SHA_1_CHARS); 41 private static String bytesToHex(byte[] bytes, char[] hexChars) { argument 43 for (int j = 0; j < bytes.length; j++) { 44 v = bytes[j] & 0xFF; 65 * Returns the in memory size of the given {@link Bitmap} in bytes [all...] |
/external/iptables/include/linux/netfilter/ |
H A D | xt_sctp.h | 38 #define bytes(type) (sizeof(type) * 8) macro 42 (chunkmap)[type / bytes(__u32)] |= \ 43 1 << (type % bytes(__u32)); \ 48 (chunkmap)[type / bytes(__u32)] &= \ 49 ~(1 << (type % bytes(__u32))); \ 54 ((chunkmap)[type / bytes (__u32)] & \ 55 (1 << (type % bytes (__u32)))) ? 1: 0; \
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
H A D | xt_sctp.h | 38 #define bytes(type) (sizeof(type) * 8) macro 42 (chunkmap)[type / bytes(__u32)] |= \ 43 1 << (type % bytes(__u32)); \ 48 (chunkmap)[type / bytes(__u32)] &= \ 49 ~(1 << (type % bytes(__u32))); \ 54 ((chunkmap)[type / bytes (__u32)] & \ 55 (1 << (type % bytes (__u32)))) ? 1: 0; \
|
/external/lz4/tests/ |
H A D | fasttest.c | 71 int32_t bytes; local 75 memcpy(&bytes, compressed + offset + 4, 4); 78 if(bytes == 0 && unBytes == 0) return 0; 79 if(bytes <= 0 || unBytes <= 0 || unBytes > 1024) return 1; 84 bytes = LZ4_decompress_fast_continue( 86 if(bytes <= 0) return 2; 92 offset += bytes;
|
/external/wycheproof/java/com/google/security/wycheproof/ |
H A D | TestUtil.java | 26 public static String bytesToHex(byte[] bytes) { argument 30 if (bytes == null) { 34 StringBuilder result = new StringBuilder(2 * bytes.length); 35 for (byte b : bytes) { 45 * Returns a hexadecimal representation of the bytes written to ByteBuffer (i.e. all the bytes 51 byte[] bytes = new byte[tmp.remaining()]; 52 tmp.get(bytes); 53 return bytesToHex(bytes);
|
/external/swiftshader/third_party/LLVM/utils/ |
H A D | codegen-diff | 13 my ($addr, $bytes, $instr) = ($1, $2, $4);
15 $bytes =~ s/\s*(.*\S)\s*/$1/; # trim any remaining whitespace
17 push (@result, {'addr' => $addr, 'bytes' => $bytes, 'instr' => $instr});
18 print "addr=$addr bytes='$bytes' instr='$instr'\n" if $DEBUG;
33 my ($addr, $bytes, $instr) = ($1, $3, $2);
34 $bytes =~ s/0x//g;
35 $bytes =~ s/\s+/ /g; # regularize whitespace
36 $bytes [all...] |
/external/bison/lib/ |
H A D | mbuiter.h | 73 relocates iterator when the string is moved by ptrdiff bytes. 122 size_t cur.bytes number of bytes of current character 141 iter->cur.bytes = 1; 150 iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, 153 if (iter->cur.bytes == (size_t) -1) 156 iter->cur.bytes = 1; 161 else if (iter->cur.bytes == (size_t) -2) 164 iter->cur.bytes = strlen (iter->cur.ptr); 171 if (iter->cur.bytes [all...] |
/external/libcap/libcap/ |
H A D | cap_extint.c | 25 __u8 bytes[CAP_SET_SIZE][NUMBER_OF_CAP_SETS]; member in struct:cap_ext_struct 66 result->bytes[j++][i] = val & 0xFF; 67 result->bytes[j++][i] = (val >>= 8) & 0xFF; 68 result->bytes[j++][i] = (val >>= 8) & 0xFF; 69 result->bytes[j++][i] = (val >> 8) & 0xFF; 108 val = export->bytes[bno++][set]; 110 val |= export->bytes[bno++][set] << 8; 112 val |= export->bytes[bno++][set] << 16; 114 val |= export->bytes[bno++][set] << 24;
|
/external/libcups/filter/ |
H A D | error.c | 54 ssize_t bytes; /* Bytes in message string */ local 60 bytes = vsnprintf(s, sizeof(s), f, ap); 63 if (bytes <= 0) 68 bytes ++; 70 if ((size_t)bytes >= sizeof(s)) 73 if (bytes > (ssize_t)(buf->end - buf->current)) 83 size = (size_t)(buf->end - buf->start + 2 * bytes + 1024); 106 memcpy(buf->current, s, (size_t)bytes); 107 buf->current += bytes - 1;
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/bc/ |
H A D | BcDigestCalculatorProvider.java | 55 public void write(byte[] bytes, int off, int len) argument 58 dig.update(bytes, off, len); 61 public void write(byte[] bytes) argument 64 dig.update(bytes, 0, bytes.length);
|
/external/emma/core/java12/com/vladium/jcd/cls/attribute/ |
H A D | Exception_info.java | 114 Exception_info (final UDataInputStream bytes) throws IOException argument 116 m_start_pc = bytes.readU2 (); 117 m_end_pc = bytes.readU2 (); 118 m_handler_pc = bytes.readU2 (); 119 m_catch_type = bytes.readU2 ();
|
H A D | InnerClass_info.java | 79 InnerClass_info (final UDataInputStream bytes) throws IOException argument 81 m_inner_class_index = bytes.readU2 (); 82 m_outer_class_index = bytes.readU2 (); 83 m_inner_name_index = bytes.readU2 (); 84 m_inner_access_flags = bytes.readU2 ();
|
/external/fio/os/ |
H A D | os-hpux.h | 50 static inline int blockdev_size(struct fio_file *f, unsigned long long *bytes) argument 58 *bytes = lba * dext.lgblksz; 62 *bytes = 0; 66 static inline int chardev_size(struct fio_file *f, unsigned long long *bytes) argument 68 return blockdev_size(f, bytes);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/ |
H A D | ExtensionDescriptor.java | 36 byte[] bytes;
field in class:ExtensionDescriptor 60 bytes = new byte[sizeOfInstance];
61 bb.get(bytes);
69 sb.append("{bytes=").append(bytes == null ? "null" : Hex.encodeHex(bytes));
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | SignatureTest.java | 22 byte[] bytes = { (byte) 0xAC, (byte) 0xDE }; 23 Signature signature = new Signature(bytes); 25 assertArrayEquals(bytes, signature.toByteArray()); 30 byte[] bytes = { (byte) 0xAC, (byte) 0xDE }; 31 Signature expected = new Signature(bytes);
|
/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/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);
|