/external/srec/shared/include/ |
CircularBuffer.h | 37 * Generic Circular Buffer implementation. 43 * A circular buffer. 50 * Total buffer capacity. 55 * Amount of data in buffer. 73 * Creates a circular buffer of the specified capacity. 75 * @param capacity the capacity in number of bytes of the data buffer. 77 * @param buffer The circular buffer to initialize. 79 ESR_SHARED_API ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer); 82 * Returns the capacity of the buffer [all...] |
/external/compiler-rt/test/asan/TestCases/Windows/ |
stack_array_left_oob.cc | 8 char buffer[42]; local 9 buffer[subscript] = 42; 10 // CHECK: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 15 // CHECK: 'buffer' <== Memory access at offset [[OFFSET]] underflows this variable
|
stack_array_right_oob.cc | 8 char buffer[42]; local 9 buffer[subscript] = 42; 10 // CHECK: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 15 // CHECK: 'buffer' <== Memory access at offset [[OFFSET]] overflows this variable
|
stack_array_sanity.cc | 8 char buffer[42]; local 9 buffer[subscript] = 42;
|
dll_poison_unpoison.cc | 17 char buffer[256]; local 18 should_not_crash(&buffer[0]); 19 __asan_poison_memory_region(buffer, 128); 20 should_not_crash(&buffer[192]); 21 __asan_unpoison_memory_region(buffer, 64); 22 should_not_crash(&buffer[32]); 24 should_crash(&buffer[96]); 33 // CHECK: 'buffer' <== Memory access at offset [[OFFSET]] is inside this variable
|
dll_operator_array_new_with_dtor_left_oob.cc | 12 C *buffer = new C[42]; local 13 buffer[-2].x = 42; 14 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 31 delete [] buffer;
|
/external/bluetooth/bluedroid/embdrv/sbc/decoder/srce/ |
synthesis-8-generated.c | 42 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT strideShift) 46 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(8235, buffer[ 12]))>> 3; 47 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(-23167, buffer[ 20]))>> 3; 48 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(26479, buffer[ 28]))>> 2; 49 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(-17397, buffer[ 36]))<< 1; 50 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(9399, buffer[ 44]))<< 3; 51 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(17397, buffer[ 52]))<< 1; 52 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(26479, buffer[ 60]))>> 2; 53 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(23167, buffer[ 68]))>> 3; 54 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(8235, buffer[ 76]))>> 3 [all...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/ |
utils.cc | 33 char buffer[11] = {0}; local 34 sprintf(buffer, "%d", i); // NOLINT 35 return buffer; 39 char buffer[32] = {0}; local 42 sprintf(buffer, "%Iu", i); // NOLINT 44 sprintf(buffer, "%zu", i); // NOLINT 46 return buffer;
|
/external/lldb/test/functionalities/process_launch/ |
main.cpp | 7 char buffer[1024]; local 9 fgets (buffer, sizeof (buffer), stdin); 10 fprintf (stdout, "%s", buffer); 13 fgets (buffer, sizeof (buffer), stdin); 14 fprintf (stderr, "%s", buffer);
|
/external/pcre/dist/ |
pcre32_ord2utf32.c | 62 buffer pointer to buffer for result - at least 1 pcre_uchars long 64 Returns: number of characters placed in the buffer 68 PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) 72 *buffer = (pcre_uchar)cvalue; 77 (void)(buffer); /* called when SUPPORT_UTF is not defined. */
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glBindVertexBuffer.java | 1 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) 5 int buffer,
|
/external/chromium_org/tools/gyp/test/mac/framework-dirs/ |
calculate.c | 12 char buffer[1024]; local 13 return CalculatePerformExpression("42", 1, 0, buffer);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
ver4_patricia_trie_reading_utils.cpp | 24 const uint8_t *const buffer, int *pos) { 25 return ByteArrayUtils::readUint32AndAdvancePosition(buffer, pos);
|
/art/compiler/utils/x86/ |
assembler_x86_test.cc | 24 AssemblerBuffer buffer; local 25 AssemblerBuffer::EnsureCapacity ensured(&buffer); 26 buffer.Emit<uint8_t>(0x42); 27 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 28 buffer.Emit<int32_t>(42); 29 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
StringBuilderExtensions.cs | 44 public static void append<T>( this StringBuilder buffer, T value ) 46 buffer.Append( value ); 50 public static char charAt( this StringBuilder buffer, int index ) 52 return buffer[index]; 56 public static int length( this StringBuilder buffer ) 58 return buffer.Length; 62 public static void setCharAt( this StringBuilder buffer, int index, char c ) 64 buffer[index] = c; 68 public static void setLength( this StringBuilder buffer, int length ) 70 buffer.Length = length [all...] |
/external/fio/t/ |
log.c | 7 char buffer[1024]; local 12 len = vsnprintf(buffer, sizeof(buffer), format, args); 14 len = min(len, sizeof(buffer) - 1); 16 return fwrite(buffer, len, 1, stderr); 21 char buffer[1024]; local 26 len = vsnprintf(buffer, sizeof(buffer), format, args); 28 len = min(len, sizeof(buffer) - 1); 30 return fwrite(buffer, len, 1, stdout) [all...] |
/external/chromium_org/v8/test/cctest/ |
test-fixed-dtoa.cc | 44 Vector<char> buffer(buffer_container, kBufferSize); 48 CHECK(FastFixedDtoa(1.0, 1, buffer, &length, &point)); 49 CHECK_EQ("1", buffer.start()); 52 CHECK(FastFixedDtoa(1.0, 15, buffer, &length, &point)); 53 CHECK_EQ("1", buffer.start()); 56 CHECK(FastFixedDtoa(1.0, 0, buffer, &length, &point)); 57 CHECK_EQ("1", buffer.start()); 60 CHECK(FastFixedDtoa(0xFFFFFFFF, 5, buffer, &length, &point)); 61 CHECK_EQ("4294967295", buffer.start()); 64 CHECK(FastFixedDtoa(4294967296.0, 5, buffer, &length, &point)) [all...] |
/frameworks/compile/mclinker/unittests/ |
LEB128Test.cpp | 47 leb128::ByteType buffer[2]; local 51 result = buffer; 53 ASSERT_EQ(buffer[0], 2); 54 ASSERT_EQ(result, buffer + 1); 57 result = buffer; 59 ASSERT_EQ(buffer[0], 127); 60 ASSERT_EQ(result, buffer + 1); 63 result = buffer; 65 ASSERT_EQ(buffer[0], 0 + 0x80); 66 ASSERT_EQ(buffer[1], 1) 93 leb128::ByteType buffer[2]; local 139 leb128::ByteType buffer[2]; local 199 leb128::ByteType buffer[2]; local 235 leb128::ByteType buffer[2]; local 301 leb128::ByteType buffer[5]; local 418 leb128::ByteType buffer[5]; local 460 leb128::ByteType buffer[9]; local 500 leb128::ByteType buffer[5]; local 516 char buffer[5]; local [all...] |
/external/qemu/android/utils/ |
bufprint.h | 22 /** FORMATTED BUFFER PRINTING 25 ** content to a given bounded character buffer, in a way that is easier 28 ** 'buffer' is the start position in the buffer, 29 ** 'buffend' is the end of the buffer, the function assumes (buffer <= buffend) 33 ** the function returns the next position in the buffer if everything fits 39 ** char buffer[1024]; 40 ** char* p = buffer; 41 ** char* end = p + sizeof(buffer); [all...] |
/external/e2fsprogs/ext2ed/ |
ext2_com.c | 35 char buffer [80]; local 38 sprintf (buffer,"setoffset %ld",file_system_info.super_block_offset);dispatch (buffer); 39 sprintf (buffer,"settype ext2_super_block");dispatch (buffer); 53 char temp [80],buffer [80],*ptr; local 55 ptr=parse_word (command_line,buffer); 59 ptr=parse_word (ptr,buffer); 61 if (buffer [0] != '/') { 68 if (buffer [1] != 0) 85 char *ptr,buffer [80]; local [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
ByteBuffer.java | 20 * Byte buffer container including length of valid data. 27 private byte[] buffer; field in class:ByteBuffer 35 * @param initialCapacity the initial capacity for this buffer 39 this.buffer = new byte[initialCapacity]; 45 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code>. 47 public ByteBuffer(byte[] buffer) 49 this.buffer = buffer; 50 this.length = buffer.length; 55 * @param buffer a byte array that will be wrapped with <code>ByteBuffer</code> [all...] |
/external/easymock/src/org/easymock/internal/ |
ArgumentToString.java | 27 public static void appendArgument(Object value, StringBuffer buffer) {
29 buffer.append("null");
31 buffer.append("\"");
32 buffer.append(value);
33 buffer.append("\"");
35 buffer.append("'");
36 buffer.append(value);
37 buffer.append("'");
39 buffer.append("[");
42 buffer.append(", "); 44 appendArgument(Array.get(value, i), buffer); local [all...] |
/external/elfutils/0.153/libasm/ |
disasm_str.c | 35 struct buffer struct 45 struct buffer *buffer = (struct buffer *) arg; local 47 if (len > buffer->len) 49 return len - buffer->len; 51 buffer->buf = mempcpy (buffer->buf, str, len); 52 buffer->len = len; 63 struct buffer buffer = { .buf = *bufp, .len = len } local [all...] |
/external/srec/shared/src/ |
CircularBuffer.c | 34 ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer) 37 if (buffer == NULL || capacity <= 0) 45 *buffer = Interface; 50 int CircularBufferRead(CircularBuffer* buffer, void* data, size_t bufSize) 55 if (buffer == NULL || (data == NULL && bufSize > 0)) 58 if (buffer->size < bufSize) 59 bufSize = buffer->size; 64 bufferData = ((unsigned char *) buffer) + sizeof(CircularBuffer); 66 if (buffer->readIdx >= buffer->writeIdx [all...] |
/external/chromium_org/printing/ |
metafile.cc | 26 bool Metafile::GetDataAsVector(std::vector<char>* buffer) const { 27 buffer->resize(GetDataSize()); 28 if (buffer->empty()) 30 return GetData(&buffer->front(), base::checked_cast<uint32>(buffer->size())); 37 std::vector<char> buffer; 38 if (!GetDataAsVector(&buffer)) 41 int size = base::checked_cast<int>(buffer.size()); 42 if (file->WriteAtCurrentPos(&buffer[0], size) != size) {
|