/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
H A D | NioEndpoint.java | 126 ByteBuffer buffer; 128 buffer = data; 130 // Copy the buffer 131 buffer = ByteBuffer.allocate(data.remaining()); 132 buffer.put(data); 133 buffer.flip(); 137 outbound.add(buffer); 145 * buffer for writing. 153 * Called by the SelectorKernel when the top buffer
|
/external/jpeg/ |
H A D | jdatadst.c | 29 JOCTET * buffer; /* start of buffer */ member in struct:__anon19024 47 /* Allocate the output buffer --- it will be released when done with image */ 48 dest->buffer = (JOCTET *) 52 dest->pub.next_output_byte = dest->buffer; 58 * Empty the output buffer --- called whenever buffer fills up. 60 * In typical applications, this should write the entire output buffer 62 * reset the pointer & count to the start of the buffer, and return TRUE 63 * indicating that the buffer ha [all...] |
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_boolhuff.h | 30 uint8_t *buffer; member in struct:__anon20683 39 void vp9_start_encode(vp9_writer *bc, uint8_t *buffer); 82 while (x >= 0 && br->buffer[x] == 0xff) { 83 br->buffer[x] = 0; 87 br->buffer[x] += 1; 90 br->buffer[br->pos++] = (lowvalue >> (24 - offset));
|
/external/qemu/distrib/jpeg-6b/ |
H A D | jdatadst.c | 29 JOCTET * buffer; /* start of buffer */ member in struct:__anon24267 47 /* Allocate the output buffer --- it will be released when done with image */ 48 dest->buffer = (JOCTET *) 52 dest->pub.next_output_byte = dest->buffer; 58 * Empty the output buffer --- called whenever buffer fills up. 60 * In typical applications, this should write the entire output buffer 62 * reset the pointer & count to the start of the buffer, and return TRUE 63 * indicating that the buffer ha [all...] |
/external/skia/src/gpu/ |
H A D | GrBufferAllocPool.h | 30 * At creation time a minimum per-buffer size can be specified. Additionally, 113 * Returns a block of memory to hold data. A buffer designated to hold the 114 * data is given to the caller. The buffer may or may not be locked. The 122 * buffer at the offset indicated by offset. Until that time it may be 123 * in temporary storage and/or the buffer may be locked. 126 * @param alignment alignment constraint from start of buffer 127 * @param buffer returns the buffer that will hold the data. 128 * @param offset returns the offset into buffer of the data. 133 const GrGeometryBuffer** buffer, [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/ |
H A D | Instruction21t.java | 59 private Instruction21t(Opcode opcode, byte[] buffer, int bufferIndex) { argument 62 assert buffer[bufferIndex] == opcode.value; 64 regA = buffer[bufferIndex + 1]; 65 targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex + 2); 99 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 100 return new Instruction21t(opcode, buffer, bufferIndex);
|
H A D | Instruction22c.java | 58 private Instruction22c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 59 super(dexFile, opcode, buffer, bufferIndex); 61 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 62 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 102 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 103 return new Instruction22c(dexFile, opcode, buffer, bufferIndex);
|
H A D | Instruction22cs.java | 62 private Instruction22cs(Opcode opcode, byte[] buffer, int bufferIndex) { argument 65 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 66 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 67 this.fieldOffset = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 93 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 94 return new Instruction22cs(opcode, buffer, bufferIndex);
|
H A D | Instruction3rms.java | 71 private Instruction3rms(Opcode opcode, byte[] buffer, int bufferIndex) { argument 74 this.regCount = (byte)NumberUtils.decodeUnsignedByte(buffer[bufferIndex + 1]); 75 this.vtableIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 76 this.startReg = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 4); 103 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 104 return new Instruction3rms(opcode, buffer, bufferIndex);
|
H A D | Instruction52c.java | 62 private Instruction52c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 63 super(dexFile, opcode, buffer, bufferIndex); 65 this.regA = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 6); 66 this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 8); 90 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 91 return new Instruction52c(dexFile, opcode, buffer, bufferIndex);
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/ |
H A D | InstructionWithReference.java | 52 protected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { argument 55 this.referenceType = readReferenceType(opcode, buffer, bufferIndex); 56 int itemIndex = getReferencedItemIndex(buffer, bufferIndex); 60 protected int getReferencedItemIndex(byte[] buffer, int bufferIndex) { argument 61 return NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 72 protected ReferenceType readReferenceType(Opcode opcode, byte[] buffer, int bufferIndex) { argument
|
/external/sonivox/arm-fm-22k/host_src/ |
H A D | eas_hostmm.c | 86 EAS_U8 *buffer; member in struct:eas_hw_file_tag 220 if (file->buffer == NULL) 234 /* allocate a buffer */ 235 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); 236 if (file->buffer == NULL) 243 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); 280 if (file->buffer == NULL) 290 EAS_HWMemCpy(pBuffer, &file->buffer[file->filePos], count); 313 if (file->buffer == NULL) 323 /* get a character from the buffer */ [all...] |
/external/sonivox/arm-hybrid-22k/host_src/ |
H A D | eas_hostmm.c | 86 EAS_U8 *buffer; member in struct:eas_hw_file_tag 220 if (file->buffer == NULL) 234 /* allocate a buffer */ 235 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); 236 if (file->buffer == NULL) 243 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); 280 if (file->buffer == NULL) 290 EAS_HWMemCpy(pBuffer, &file->buffer[file->filePos], count); 313 if (file->buffer == NULL) 323 /* get a character from the buffer */ [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
H A D | Latin1Converter.java | 38 * A converter that processes a byte buffer containing a mix of UTF8 and Latin-1/Cp1252 chars. 39 * The result is a buffer where those chars have been converted to UTF-8; 42 * <em>Explanation of the processing:</em> First the encoding of the buffer is detected looking 43 * at the first four bytes (that works only if the buffer starts with an ASCII-char, 58 * <em>Example:</em> If an Euro-symbol (€) appears in the byte buffer (0xE2, 0x82, 0xAC), 63 * @param buffer a byte buffer contain 64 * @return Returns a new buffer containing valid UTF-8 66 public static ByteBuffer convert(ByteBuffer buffer) argument 68 if ("UTF-8".equals(buffer [all...] |
/external/chromium_org/third_party/freetype/include/freetype/internal/ |
H A D | ftstream.h | 152 /* Integer extraction macros -- the `buffer' parameter must ALWAYS be of */ 224 #define FT_NEXT_CHAR( buffer ) \ 225 ( (signed char)*buffer++ ) 227 #define FT_NEXT_BYTE( buffer ) \ 228 ( (unsigned char)*buffer++ ) 230 #define FT_NEXT_SHORT( buffer ) \ 231 ( (short)( buffer += 2, FT_PEEK_SHORT( buffer - 2 ) ) ) 233 #define FT_NEXT_USHORT( buffer ) \ 234 ( (unsigned short)( buffer [all...] |
/external/apache-http/src/org/apache/http/impl/auth/ |
H A D | NTLMScheme.java | 91 final CharArrayBuffer buffer, int pos, int len) throws MalformedChallengeException { 92 String challenge = buffer.substringTrimmed(pos, len); 134 CharArrayBuffer buffer = new CharArrayBuffer(32); 136 buffer.append(AUTH.PROXY_AUTH_RESP); 138 buffer.append(AUTH.WWW_AUTH_RESP); 140 buffer.append(": NTLM "); 141 buffer.append(response); 142 return new BufferedHeader(buffer); 90 parseChallenge( final CharArrayBuffer buffer, int pos, int len) argument
|
/external/apache-xml/src/main/java/org/apache/xalan/templates/ |
H A D | AVT.java | 182 FastStringBuffer buffer = null; 185 buffer = StringBufferPool.get(); 188 buffer = new FastStringBuffer(6); 218 buffer.append(t); 234 buffer.append(lookahead); 251 if (buffer.length() > 0) 253 m_parts.addElement(new AVTPartSimple(buffer.toString())); 254 buffer.setLength(0); 306 buffer.setLength(0); 359 buffer [all...] |
/external/chromium/base/ |
H A D | sync_socket.h | 46 // buffer is a pointer to the data to send. 49 size_t Send(const void* buffer, size_t length); 52 // buffer is a pointer to the buffer to receive data. 55 size_t Receive(void* buffer, size_t length);
|
/external/chromium/chrome/browser/autofill/crypto/ |
H A D | rc4_decryptor.h | 34 scoped_array<wchar_t> buffer(new wchar_t[data.length() + 1]); 35 memset(buffer.get(), 0, (data.length() + 1) * sizeof(wchar_t)); 36 memcpy(buffer.get(), data.c_str(), data_size); 38 RunInternal(reinterpret_cast<uint8 *>(buffer.get()), data_size); 40 std::wstring result(buffer.get()); 43 memset(buffer.get(), 0, data_size); 80 void RunInternal(uint8 *buffer, int buffer_len) { argument 94 buffer[counter] ^= state[xor_index];
|
/external/chromium/crypto/ |
H A D | encryptor_nss.cc | 61 std::vector<unsigned char> buffer(ciphertext_len); 65 &buffer[0], 76 &buffer[op_len], 82 ciphertext->assign(reinterpret_cast<char *>(&buffer[0]), 99 std::vector<unsigned char> buffer(plaintext_len); 103 &buffer[0], 114 &buffer[op_len], 120 plaintext->assign(reinterpret_cast<char *>(&buffer[0]),
|
/external/chromium_org/base/ |
H A D | os_compat_android_unittest.cc | 26 char* buffer = const_cast<char*>(sub_dir_string.c_str()); local 27 EXPECT_EQ(NULL, mkdtemp(buffer));
|
H A D | rand_util_unittest.cc | 34 char buffer[buffer_size]; local 35 memset(buffer, 0, buffer_size); 36 base::RandBytes(buffer, buffer_size); 37 std::sort(buffer, buffer + buffer_size); 40 EXPECT_GT(std::unique(buffer, buffer + buffer_size) - buffer, 25);
|
/external/chromium_org/components/autofill/core/browser/crypto/ |
H A D | rc4_decryptor.h | 39 scoped_ptr<wchar_t[]> buffer(new wchar_t[data.length() + 1]); 40 memset(buffer.get(), 0, (data.length() + 1) * sizeof(wchar_t)); 41 memcpy(buffer.get(), data.c_str(), data_size); 43 RunInternal(reinterpret_cast<uint8 *>(buffer.get()), data_size); 45 std::wstring result(buffer.get()); 48 memset(buffer.get(), 0, data_size); 85 void RunInternal(uint8 *buffer, int buffer_len) { argument 99 buffer[counter] ^= state[xor_index];
|
/external/chromium_org/content/public/test/ |
H A D | unittest_test_suite.cc | 22 virtual void cryptographicallyRandomValues(unsigned char* buffer, 24 base::RandBytes(buffer, length);
|
/external/chromium_org/gpu/command_buffer/service/ |
H A D | vertex_attrib_manager.cc | 47 Buffer* buffer, 55 buffer_ = buffer; 64 void VertexAttrib::Unbind(Buffer* buffer) { argument 65 if (buffer_.get() == buffer) { 138 void VertexAttribManager::SetElementArrayBuffer(Buffer* buffer) { argument 139 element_array_buffer_ = buffer; 154 void VertexAttribManager::Unbind(Buffer* buffer) { argument 155 if (element_array_buffer_.get() == buffer) { 159 vertex_attribs_[vv].Unbind(buffer); 179 // If they are not used by the current program check that they have a buffer 46 SetInfo( Buffer* buffer, GLint size, GLenum type, GLboolean normalized, GLsizei gl_stride, GLsizei real_stride, GLsizei offset) argument 199 Buffer* buffer = attrib->buffer(); local 244 Buffer* buffer = attrib->buffer(); local [all...] |