Searched refs:buffer (Results 26 - 50 of 9657) sorted by relevance

1234567891011>>

/external/srec/shared/include/
H A DCircularBuffer.h43 * 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.
84 #define CircularBufferGetCapacity(buffer) ((buffe
[all...]
/external/compiler-rt/test/asan/TestCases/Windows/
H A Dstack_array_left_oob.cc8 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
H A Dstack_array_right_oob.cc8 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
H A Dstack_array_sanity.cc8 char buffer[42]; local
9 buffer[subscript] = 42;
H A Ddll_poison_unpoison.cc17 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
H A Ddll_operator_array_new_with_dtor_left_oob.cc12 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/
H A Dsynthesis-8-generated.c42 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT strideShift) argument
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[ 7
[all...]
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/
H A Dutils.cc33 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/
H A Dmain.cpp7 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/
H A Dpcre32_ord2utf32.c62 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) argument
72 *buffer = (pcre_uchar)cvalue;
77 (void)(buffer); /* called when SUPPORT_UTF is not defined. */
/external/chromium_org/tools/gyp/test/mac/framework-dirs/
H A Dcalculate.c12 char buffer[1024]; local
13 return CalculatePerformExpression("42", 1, 0, buffer);
/external/clang/test/SemaTemplate/
H A Dinstantiate-sizeof.cpp6 int buffer[n]; local
7 [] { int x = sizeof(sizeof(buffer)); }();
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
H A DStringBuilderExtensions.cs44 public static void append<T>( this StringBuilder buffer, T value ) argument
46 buffer.Append( value );
50 public static char charAt( this StringBuilder buffer, int index ) argument
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 ) argument
64 buffer[index] = c;
68 public static void setLength( this StringBuilder buffer, int length ) argument
70 buffer
[all...]
/external/fio/t/
H A Dlog.c7 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, le
[all...]
/external/chromium_org/v8/test/cctest/
H A Dtest-fixed-dtoa.cc44 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,
[all...]
/external/qemu/android/utils/
H A Dbufprint.h25 ** 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);
48 ** (this means that even if p >= end, the content of "buffer" i
[all...]
/external/e2fsprogs/ext2ed/
H A Dext2_com.c35 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 [
85 char *ptr,buffer [80]; local
[all...]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DByteBuffer.java20 * 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) argument
49 this.buffer = buffer;
50 this.length = buffer.length;
55 * @param buffer
58 ByteBuffer(byte[] buffer, int length) argument
103 ByteBuffer(byte[] buffer, int offset, int length) argument
[all...]
/external/easymock/src/org/easymock/internal/
H A DArgumentToString.java27 public static void appendArgument(Object value, StringBuffer buffer) { argument
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
[all...]
/external/elfutils/0.153/libasm/
H A Ddisasm_str.c35 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 buffe local
[all...]
/external/srec/shared/src/
H A DCircularBuffer.c34 ESR_ReturnCode CircularBufferCreate(size_t capacity, const LCHAR* mtag, CircularBuffer** buffer) argument
37 if (buffer == NULL || capacity <= 0)
45 *buffer = Interface;
50 int CircularBufferRead(CircularBuffer* buffer, void* data, size_t bufSize) argument
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
89 CircularBufferSkip(CircularBuffer* buffer, size_t bufSize) argument
109 CircularBufferWrite(CircularBuffer* buffer, const void *data, size_t bufSize) argument
149 CircularBufferUnwrite(CircularBuffer* buffer, size_t amount) argument
[all...]
/external/chromium_org/printing/
H A Dmetafile.cc26 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) {
/external/chromium_org/third_party/skia/src/core/
H A DSkBuffer.cpp14 void SkRBuffer::readNoSizeCheck(void* buffer, size_t size) argument
17 if (buffer)
18 memcpy(buffer, fPos, size);
37 bool SkRBufferWithSizeCheck::read(void* buffer, size_t size) { argument
40 readNoSizeCheck(buffer, size);
52 void SkWBuffer::writeNoSizeCheck(const void* buffer, size_t size) argument
55 if (fData && buffer)
56 memcpy(fPos, buffer, size);
79 static void AssertBuffer32(const void* buffer)
81 SkASSERT(buffer);
[all...]
/external/skia/src/core/
H A DSkBuffer.cpp14 void SkRBuffer::readNoSizeCheck(void* buffer, size_t size) argument
17 if (buffer)
18 memcpy(buffer, fPos, size);
37 bool SkRBufferWithSizeCheck::read(void* buffer, size_t size) { argument
40 readNoSizeCheck(buffer, size);
52 void SkWBuffer::writeNoSizeCheck(const void* buffer, size_t size) argument
55 if (fData && buffer)
56 memcpy(fPos, buffer, size);
79 static void AssertBuffer32(const void* buffer)
81 SkASSERT(buffer);
[all...]
/external/chromium_org/content/browser/device_sensors/
H A Ddata_fetcher_shared_memory_default.cc12 static bool SetMotionBuffer(content::DeviceMotionHardwareBuffer* buffer, argument
14 if (!buffer)
16 buffer->seqlock.WriteBegin();
17 buffer->data.allAvailableSensorsAreActive = enabled;
18 buffer->seqlock.WriteEnd();
23 content::DeviceOrientationHardwareBuffer* buffer, bool enabled) {
24 if (!buffer)
26 buffer->seqlock.WriteBegin();
27 buffer->data.allAvailableSensorsAreActive = enabled;
28 buffer
22 SetOrientationBuffer( content::DeviceOrientationHardwareBuffer* buffer, bool enabled) argument
32 SetLightBuffer(content::DeviceLightHardwareBuffer* buffer, double lux) argument
53 Start(ConsumerType consumer_type, void* buffer) argument
[all...]

Completed in 514 milliseconds

1234567891011>>