Searched defs:bytes (Results 176 - 200 of 1230) sorted by relevance

1234567891011>>

/external/icu/icu4c/source/common/
H A Dbytestream.cpp42 void CheckedArrayByteSink::Append(const char* bytes, int32_t n) { argument
52 if (n > 0 && bytes != (outbuf_ + size_)) {
53 uprv_memcpy(outbuf_ + size_, bytes, n);
H A Ducnv_cnv.c48 const char *bytes, int32_t length,
56 /* write bytes */
59 *t++=*bytes++;
65 *t++=*bytes++;
79 *t++=(uint8_t)*bytes++;
47 ucnv_fromUWriteBytes(UConverter *cnv, const char *bytes, int32_t length, char **target, const char *targetLimit, int32_t **offsets, int32_t sourceIndex, UErrorCode *pErrorCode) argument
/external/libvorbis/doc/
H A D02-bitpacking.tex19 \subsubsection{octets, bytes and words}
23 seven, ten, eleven and sixteen bit 'bytes' have been used. For
29 bytes as the fundamental atom of storage). A 'word' is an integer
34 bytes (16, 32 or 64 bits). Note however that the Vorbis bitpacking
52 Words are native groupings of multiple bytes. Several byte orderings
63 Logically, bytes are always coded and decoded in order from byte zero
78 coded. When packing the bits into bytes, the encoder begins by
149 byte n [ ] bytestream length == 2 bytes
166 byte n [ ] bytestream length == 4 bytes
185 byte 3 [0 0 0 0 0 1 1 0] bytestream length == 4 bytes
[all...]
/external/ltrace/sysdeps/linux-gnu/arm/
H A Dbreakpoint.c45 unsigned char *bytes = current.b; local
55 sbp->orig_value[i * sizeof(long) + j] = bytes[j];
57 bytes[j] = break_insn[i * sizeof(long) + j];
60 bytes[j] = thumb_break_insn[i * sizeof(long) + j];
78 unsigned char *bytes = current.b; local
87 bytes[j] = sbp->orig_value[i * sizeof(long) + j];
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_linear.c42 size_t bytes = t->cols * t->block.size; local
51 ptr = (char*)src_ptr + src_stride * t->rows * y + bytes * x;
53 memcpy(dst_ptr2, ptr, bytes);
54 dst_ptr2 += bytes;
66 size_t bytes = t->cols * t->block.size; local
73 ptr = (char*)dst_ptr + dst_stride * t->rows * y + bytes * x;
75 memcpy(ptr, src_ptr2, bytes);
76 src_ptr2 += bytes;
/external/mesa3d/src/gallium/drivers/radeon/
H A Dradeon_llvm_emit.cpp79 * @param bytes This function allocates memory for the byte stream, it is the
83 radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes, argument
147 *bytes = (unsigned char*)malloc(data.length() * sizeof(unsigned char));
148 memcpy(*bytes, data.c_str(), data.length() * sizeof(unsigned char));
/external/mesa3d/src/glsl/glcpp/
H A Dglcpp.c50 size_t bytes; local
61 bytes = fread (text + total_read, 1, CHUNK, fp);
62 total_read += bytes;
64 if (bytes < CHUNK) {
/external/openssl/crypto/rand/
H A Drand.h84 int (*bytes)(unsigned char *buf, int num); member in struct:rand_meth_st
110 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
112 int RAND_egd_bytes(const char *path,int bytes);
H A Drand_egd.c66 * RAND_query_egd_bytes(path, buf, bytes)
67 * will actually query "bytes" bytes of entropy form the egd-socket located
70 * The number of bytes is not limited by the maximum chunk size of EGD,
71 * which is 255 bytes. If more than 255 bytes are wanted, several chunks
72 * of entropy bytes are requested. The connection is left open until the
76 * num the number of bytes read from the EGD socket. This number is either
77 * the number of bytes requested or smaller, if the EGD pool is
82 * RAND_egd_bytes(path, bytes) wil
99 RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) argument
108 RAND_egd_bytes(const char *path,int bytes) argument
136 RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) argument
284 RAND_egd_bytes(const char *path, int bytes) argument
[all...]
/external/openssl/include/openssl/
H A Drand.h84 int (*bytes)(unsigned char *buf, int num); member in struct:rand_meth_st
110 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
112 int RAND_egd_bytes(const char *path,int bytes);
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
H A DMessageNanoPrinter.java122 // bytes is special since it's not repeated, but is represented by an array
238 private static void appendQuotedBytes(byte[] bytes, StringBuffer builder) { argument
239 if (bytes == null) {
245 for (int i = 0; i < bytes.length; ++i) {
246 int ch = bytes[i];
/external/protobuf/java/src/test/java/com/google/protobuf/
H A DCodedOutputStreamTest.java50 * Helper to construct a byte array from a bunch of bytes. The inputs are
54 private byte[] bytes(int... bytesAsInts) { method in class:CodedOutputStreamTest
55 byte[] bytes = new byte[bytesAsInts.length];
57 bytes[i] = (byte) bytesAsInts[i];
59 return bytes;
63 private List<Byte> toList(byte[] bytes) { argument
65 for (byte b : bytes) {
77 * checks that the result matches the given bytes.
130 assertWriteVarint(bytes(0x00), 0);
131 assertWriteVarint(bytes(
[all...]
/external/qemu/backends/
H A Dmsmouse.c38 unsigned char bytes[4] = { 0x40, 0x00, 0x00, 0x00 }; local
41 bytes[0] |= (MSMOUSE_HI2(dy) << 2) | MSMOUSE_HI2(dx);
42 bytes[1] |= MSMOUSE_LO6(dx);
43 bytes[2] |= MSMOUSE_LO6(dy);
46 bytes[0] |= (buttons_state & 0x01 ? 0x20 : 0x00);
47 bytes[0] |= (buttons_state & 0x02 ? 0x10 : 0x00);
48 bytes[3] |= (buttons_state & 0x04 ? 0x20 : 0x00);
53 qemu_chr_read(chr, bytes, 4);
/external/skia/include/core/
H A DSkChunkAlloc.h31 void* alloc(size_t bytes, AllocFailType);
32 void* allocThrow(size_t bytes) { argument
33 return this->alloc(bytes, kThrow_AllocFailType);
37 success, the number of bytes freed is returned, or 0 if the block could
65 Block* newBlock(size_t bytes, AllocFailType ftype);
/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/valgrind/main/coregrind/
H A Dpub_core_aspacemgr.h286 also ensure that at least abs(EXTRA) extra free bytes will remain
296 mapping by DELTA bytes, taking the space from a reservation section
311 the mapping forwards only by DELTA bytes, and trashes whatever was
349 HChar bytes[VG_STACK_GUARD_SZB member in struct:__anon32690
364 /* Figure out how many bytes of the stack's active area have not been
/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 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.
341 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...]
H A DDERGeneralizedTime.java116 byte[] bytes)
118 this.time = bytes;
115 DERGeneralizedTime( byte[] bytes) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/util/
H A DASN1Dump.java355 private static String dumpBinaryDataAsString(String indent, byte[] bytes) argument
363 for (int i = 0; i < bytes.length; i += SAMPLE_SIZE)
365 if (bytes.length - i > SAMPLE_SIZE)
368 buf.append(new String(Hex.encode(bytes, i, SAMPLE_SIZE)));
370 buf.append(calculateAscString(bytes, i, SAMPLE_SIZE));
376 buf.append(new String(Hex.encode(bytes, i, bytes.length - i)));
377 for (int j = bytes.length - i; j != SAMPLE_SIZE; j++)
382 buf.append(calculateAscString(bytes, i, bytes
390 calculateAscString(byte[] bytes, int off, int len) argument
[all...]

Completed in 5272 milliseconds

1234567891011>>