/external/icu4c/tools/genrb/ |
rle.c | 39 appendEncodedByte(uint16_t* buffer, uint16_t* buffLimit, uint8_t value, uint8_t state[],UErrorCode* status) { 45 if(buffer < buffLimit){ 46 *buffer++ = c; 51 return buffer; 56 return buffer; 64 encodeRunByte(uint16_t* buffer,uint16_t* bufLimit, uint8_t value, int32_t length, uint8_t state[], UErrorCode* status) { 72 buffer = appendEncodedByte(buffer,bufLimit, ESCAPE_BYTE, state,status); 74 buffer = appendEncodedByte(buffer,bufLimit, value, state, status) [all...] |
/external/chromium/chrome/browser/sync/util/ |
crypto_helpers_unittest.cc | 9 uint8 buffer[256]; local 10 for (unsigned int i = 0; i < arraysize(buffer); ++i) { 11 buffer[i] = i; 14 md5.AddData(buffer, arraysize(buffer));
|
/external/chromium_org/media/mp4/ |
avc.cc | 35 bool AVC::ConvertFrameToAnnexB(int length_size, std::vector<uint8>* buffer) { 39 return ConvertAVCToAnnexBInPlaceForLengthSize4(buffer); 42 temp.swap(*buffer); 43 buffer->reserve(temp.size() + 32); 52 buffer->insert(buffer->end(), kAnnexBStartCode, 54 buffer->insert(buffer->end(), temp.begin() + pos, 64 std::vector<uint8>* buffer) { 65 DCHECK(buffer->empty()) [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/custom/ |
V8AudioBufferSourceNodeCustom.cpp | 43 AudioBuffer* buffer = 0; local 45 buffer = V8AudioBuffer::toNative(value->ToObject()); 46 if (buffer && !imp->setBuffer(buffer)) { 52 if (!buffer) {
|
/external/clang/test/SemaCXX/ |
array-bounds-ptr-arith.cpp | 27 char buffer[5]; // expected-note 2 {{declared here}} local 29 swallow(buffer + sizeof("Hello")-1); // expected-warning {{refers past the end of the array}} 30 swallow(buffer + (sizeof("Hello")-1)); // no-warning 31 if (n > 0 && n <= 6) swallow(buffer + 6 - n); // expected-warning {{refers past the end of the array}} 32 if (n > 0 && n <= 6) swallow(buffer + (6 - n)); // no-warning
|
/external/icu4c/tools/toolutil/ |
flagparser.c | 16 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const char ** flagNames, int32_t numOfFlags, UErrorCode *status); 17 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 24 char* buffer = uprv_malloc(sizeof(char) * currentBufferSize); local 36 if (buffer == NULL) { 45 uprv_free(buffer); 46 buffer = uprv_malloc(sizeof(char) * currentBufferSize); 47 if (buffer == NULL) { 54 if (T_FileStream_readLine(f, buffer, currentBufferSize) == NULL) { 58 if (buffer[0] == '#') { 62 if (uprv_strlen(buffer) == (currentBufferSize - 1) && buffer[currentBufferSize-2] != '\n') [all...] |
/frameworks/compile/libbcc/bcinfo/Wrap/ |
in_memory_wrapper_input.cpp | 22 InMemoryWrapperInput::InMemoryWrapperInput(const char* buffer, size_t size) : 23 _buffer(buffer), _pos(0), _size(size) { 29 size_t InMemoryWrapperInput::Read(uint8_t* buffer, size_t wanted) { 32 if (!buffer) { 40 buffer[found++] = _buffer[_pos++];
|
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLBIOInputStream.java | 45 public int gets(byte[] buffer) throws IOException { 46 if (buffer == null || buffer.length == 0) { 52 while (offset < buffer.length) { 67 buffer[offset++] = (byte) inputByte;
|
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/ |
ASCCharsetDecoderTest.java | 48 // ByteBuffer buffer = ByteBuffer.allocate(8); 49 // buffer.put((byte)-1); 50 // buffer.put(unibytes); 51 // buffer.flip(); 52 // return buffer; 58 ByteBuffer buffer = ByteBuffer.allocate(8); local 59 buffer.put((byte) -1); 60 buffer.put(getByteBuffer()); 61 buffer.flip(); 62 return buffer; [all...] |
GBCharsetDecoderTest.java | 53 ByteBuffer buffer = ByteBuffer.allocate(20); local 54 buffer.put(new byte[] { (byte) 0xd8 }); 55 buffer.put(getByteBuffer()); 56 buffer.flip(); 57 return buffer;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
patricia_trie_reading_utils.cpp | 46 const uint8_t *const buffer, int *const pos) { 47 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); 52 buffer, pos); 57 const uint8_t *const buffer, int *const pos) { 58 return ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); 61 /* static */ int PtReadingUtils::getCodePointAndAdvancePosition(const uint8_t *const buffer, 63 return ByteArrayUtils::readCodePointAndAdvancePosition(buffer, pos); 67 /* static */ int PtReadingUtils::getCharsAndAdvancePosition(const uint8_t *const buffer, 71 length = ByteArrayUtils::readStringAndAdvancePosition(buffer, maxLength, outBuffer, 74 const int codePoint = getCodePointAndAdvancePosition(buffer, pos) [all...] |
/external/chromium_org/v8/test/cctest/ |
test-fast-dtoa.cc | 58 Vector<char> buffer(buffer_container, kBufferSize); 65 buffer, &length, &point); 67 CHECK_EQ("5", buffer.start()); 72 buffer, &length, &point); 74 CHECK_EQ("17976931348623157", buffer.start()); 78 buffer, &length, &point); 80 CHECK_EQ("4294967272", buffer.start()); 84 buffer, &length, &point); 86 CHECK_EQ("4185580496821357", buffer.start()); 90 buffer, &length, &point) [all...] |
/external/v8/test/cctest/ |
test-fast-dtoa.cc | 33 Vector<char> buffer(buffer_container, kBufferSize); 40 buffer, &length, &point); 42 CHECK_EQ("5", buffer.start()); 47 buffer, &length, &point); 49 CHECK_EQ("17976931348623157", buffer.start()); 53 buffer, &length, &point); 55 CHECK_EQ("4294967272", buffer.start()); 59 buffer, &length, &point); 61 CHECK_EQ("4185580496821357", buffer.start()); 65 buffer, &length, &point) [all...] |
/external/apache-http/src/org/apache/http/entity/ |
BufferedHttpEntity.java | 47 * buffer once and provided from there as often as required. 57 private final byte[] buffer; field in class:BufferedHttpEntity 62 this.buffer = EntityUtils.toByteArray(entity); 64 this.buffer = null; 69 if (this.buffer != null) { 70 return this.buffer.length; 77 if (this.buffer != null) { 78 return new ByteArrayInputStream(this.buffer); 90 return (buffer == null) && wrappedEntity.isChunked(); 107 if (this.buffer != null) [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkMallocPixelRef.cpp | 43 void SkMallocPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { 44 this->INHERITED::flatten(buffer); 46 buffer.writeByteArray(fStorage, fSize); 47 buffer.writeBool(fCTable != NULL); 49 buffer.writeFlattenable(fCTable); 53 SkMallocPixelRef::SkMallocPixelRef(SkFlattenableReadBuffer& buffer) 54 : INHERITED(buffer, NULL) { 55 fSize = buffer.getArrayCount(); 57 buffer.readByteArray(fStorage); 58 if (buffer.readBool()) [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
ByteBufferHelper.java | 29 for (ByteBuffer buffer : samples) { 31 if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() == nuSamples.get(lastIndex).array() && 32 nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset()) { 34 ByteBuffer nu = ByteBuffer.wrap(buffer.array(), oldBuffer.arrayOffset(), oldBuffer.limit() + buffer.limit()).slice(); 38 buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && 39 nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { 42 oldBuffer.limit(buffer.limit() + oldBuffer.limit()); 44 buffer.rewind() [all...] |
/external/sfntly/cpp/src/sfntly/port/ |
memory_output_stream.cc | 27 void MemoryOutputStream::Write(ByteVector* buffer) { 28 store_.insert(store_.end(), buffer->begin(), buffer->end()); 31 void MemoryOutputStream::Write(ByteVector* buffer, 34 assert(buffer); 37 buffer->begin() + offset, 38 buffer->begin() + offset + length); 46 void MemoryOutputStream::Write(byte_t* buffer, int32_t offset, int32_t length) { 47 assert(buffer); 49 store_.insert(store_.end(), buffer + offset, buffer + offset + length) [all...] |
/external/skia/src/core/ |
SkMallocPixelRef.cpp | 43 void SkMallocPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { 44 this->INHERITED::flatten(buffer); 46 buffer.writeByteArray(fStorage, fSize); 47 buffer.writeBool(fCTable != NULL); 49 buffer.writeFlattenable(fCTable); 53 SkMallocPixelRef::SkMallocPixelRef(SkFlattenableReadBuffer& buffer) 54 : INHERITED(buffer, NULL) { 55 fSize = buffer.getArrayCount(); 57 buffer.readByteArray(fStorage); 58 if (buffer.readBool()) [all...] |
/libcore/luni/src/main/java/libcore/io/ |
HeapBufferIterator.java | 28 private final byte[] buffer; field in class:HeapBufferIterator 35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { 36 this.buffer = buffer; 51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount); 56 byte result = buffer[offset + position]; 62 int result = Memory.peekInt(buffer, offset + position, order); 69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset + position, SizeOf.INT, order.needsSwap); 74 short result = Memory.peekShort(buffer, offset + position, order); 80 * Returns a new iterator over {@code buffer}, starting at {@code offset} and continuing fo [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_OutputStream.java | 17 private byte[] buffer; field in class:Support_OutputStream 35 buffer = new byte[bufferSize]; 58 public void write(byte buffer[]) throws IOException { 62 for (int i = 0; i < buffer.length; i++) { 63 write(buffer[i]); 68 public void write(byte buffer[], int offset, int count) throws IOException { 72 if (offset < 0 || count < 0 || (offset + count) > buffer.length) { 76 write(buffer[i]); 86 buffer[position] = (byte)(oneByte & 255); 89 throw new IOException("Internal buffer overflow.") [all...] |
/external/apache-http/src/org/apache/http/auth/ |
AuthState.java | 138 StringBuilder buffer = new StringBuilder(); local 139 buffer.append("auth scope ["); 140 buffer.append(this.authScope); 141 buffer.append("]; credentials set ["); 142 buffer.append(this.credentials != null ? "true" : "false"); 143 buffer.append("]"); 144 return buffer.toString();
|
/external/chromium_org/net/spdy/ |
spdy_buffer_unittest.cc | 28 // Make a string from the data remaining in |buffer|. 29 std::string BufferToString(const SpdyBuffer& buffer) { 30 return std::string(buffer.GetRemainingData(), buffer.GetRemainingSize()); 36 SpdyBuffer buffer( 41 EXPECT_EQ(kData, buffer.GetRemainingData()); 42 EXPECT_EQ(kDataSize, buffer.GetRemainingSize()); 49 SpdyBuffer buffer(data.data(), data.size()); 50 // This mutation shouldn't affect |buffer|'s data. 53 EXPECT_NE(kData, buffer.GetRemainingData()) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
LinkHash.cpp | 41 static bool resolveRelative(const KURL& base, const String& relative, url_canon::RawCanonOutput<2048>* buffer) 48 return url_util::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed(), relativeUTF8.data(), relativeUTF8.length(), 0, buffer, &parsed); 50 return url_util::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed(), relative.characters16(), relative.length(), 0, buffer, &parsed); 57 url_canon::RawCanonOutput<2048> buffer; 58 if (!resolveRelative(base, relative.string(), &buffer)) 60 return WebKit::Platform::current()->visitedLinkHash(buffer.data(), buffer.length());
|
/external/dropbear/ |
signkey.h | 28 #include "buffer.h" 47 int buf_get_pub_key(buffer *buf, sign_key *key, int *type); 48 int buf_get_priv_key(buffer* buf, sign_key *key, int *type); 49 void buf_put_pub_key(buffer* buf, sign_key *key, int type); 50 void buf_put_priv_key(buffer* buf, sign_key *key, int type); 52 void buf_put_sign(buffer* buf, sign_key *key, int type, 55 int buf_verify(buffer * buf, sign_key *key, const unsigned char *data, 61 buffer * line, char ** fingerprint);
|
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/ |
lexer.ml | 11 let buffer = Buffer.create 1 in var 12 Buffer.add_char buffer c; 13 lex_ident buffer stream 17 let buffer = Buffer.create 1 in var 18 Buffer.add_char buffer c; 19 lex_number buffer strea [all...] |