HomeSort by relevance Sort by last modified time
    Searched defs:buffer (Results 476 - 500 of 6723) sorted by null

<<11121314151617181920>>

  /external/ltp/testcases/kernel/syscalls/readlink/
readlink01.c 28 * readlink() should return the contents of symbolic link path in the buffer
95 char buffer[MAX_SIZE]; /* temporary buffer to hold symlink contents */ local
108 * symlink into a buffer.
110 TEST(readlink(SYMFILE, buffer, sizeof(buffer)));
125 /* Check for the contents of buffer */
126 if (memcmp(buffer, TESTFILE, exp_val) != 0) {
127 tst_resm(TFAIL, "Pathname %s and buffer"
129 TESTFILE, buffer);
    [all...]
readlink04.c 30 * specified buffer on success.
53 static char buffer[MAX_SIZE]; variable
72 * symlink into a buffer.
74 TEST(readlink(SYMFILE, buffer, sizeof(buffer)));
83 /* Check for the contents of buffer */
84 if (memcmp(buffer, TESTFILE, exp_val) != 0) {
86 "and buffer contents %s "
87 "differ", TESTFILE, buffer);
143 /* fill the buffer with a known value *
    [all...]
  /external/ltp/testcases/kernel/syscalls/splice/
splice01.c 42 static char buffer[TEST_BLOCK_SIZE]; variable
54 if (buffer[i] != splicebuffer[i])
59 tst_res(TFAIL, "Wrong data read from the buffer at %i", i);
102 buffer[i] = i & 0xff;
105 SAFE_WRITE(1, fd_in, buffer, TEST_BLOCK_SIZE);
  /external/ltp/testcases/kernel/syscalls/writev/
writev07.c 50 unsigned char buffer[BUFSIZE], fpattern[BUFSIZE], tmp[BUFSIZE]; local
53 { buffer, CHUNK },
55 { buffer + CHUNK, CHUNK },
56 { buffer + CHUNK * 2, CHUNK },
63 buffer[i] = i % (CHUNK - 1);
  /external/mdnsresponder/mDNSShared/
dnssd_ipc.c 35 static char buffer[1024]; local
37 memset(buffer, 0, sizeof(buffer));
43 buffer,
44 sizeof(buffer),
49 while ((n > 0) && isspace(((unsigned char *) buffer)[n - 1]))
50 buffer[--n] = '\0';
52 return buffer;
111 int get_string(const char **ptr, const char *const end, char *buffer, int buflen)
115 *buffer = 0
    [all...]
mDNSDebug.c 54 char buffer[512]; local
57 buffer[mDNS_vsnprintf(buffer, sizeof(buffer), format, ptr)] = 0;
59 mDNSPlatformWriteDebugMsg(buffer);
66 char buffer[512]; local
67 buffer[mDNS_vsnprintf((char *)buffer, sizeof(buffer), format, ptr)] = 0;
68 mDNSPlatformWriteLogMsg(ProgramName, buffer, logLevel)
    [all...]
  /external/mesa3d/src/gallium/auxiliary/util/
u_draw.c 59 const struct pipe_vertex_buffer *buffer = local
65 if (!buffer->buffer) {
69 assert(buffer->buffer->height0 == 1);
70 assert(buffer->buffer->depth0 == 1);
71 buffer_size = buffer->buffer->width0;
79 if (buffer->buffer_offset >= buffer_size)
    [all...]
u_suballoc.c 29 /* A simple allocator that suballocates memory from a large buffer. */
43 unsigned size; /* Size of the whole buffer, in bytes. */
46 boolean zero_buffer_memory; /* If the buffer contents should be zeroed. */
48 struct pipe_resource *buffer; /* The buffer we suballocate from. */ member in struct:u_suballocator
56 * \p zero_buffer_memory determines whether the buffer contents should be
79 pipe_resource_reference(&allocator->buffer, NULL);
90 /* Don't allow allocations larger than the buffer size. */
94 /* Make sure we have enough space in the buffer. */
95 if (!allocator->buffer ||
    [all...]
  /external/mesa3d/src/gallium/drivers/i915/
i915_resource_buffer.c 56 struct i915_buffer *buffer = i915_buffer(resource); local
57 if (buffer->free_on_destroy)
58 align_free(buffer->data);
59 FREE(buffer);
72 struct i915_buffer *buffer = i915_buffer(resource); local
84 return buffer->data + transfer->box.x;
101 struct i915_buffer *buffer = i915_buffer(resource); local
103 memcpy(buffer->data + offset, data, size);
  /external/mesa3d/src/gallium/drivers/svga/
svga_state_vdecl.c 61 * buffer offset below. The important thing is that all vertex buffer
72 struct svga_buffer *buffer; local
76 if (!vb->buffer)
79 buffer = svga_buffer(vb->buffer);
80 if (buffer->uploaded.start > offset) {
81 tmp_neg_bias = buffer->uploaded.start - offset;
92 struct svga_buffer *buffer; local
94 if (!vb->buffer)
    [all...]
  /external/mesa3d/src/gallium/state_trackers/clover/core/
queue.cpp 39 char buffer[1024]; local
40 vsnprintf(buffer, sizeof(buffer), fmt, args);
41 queue->context().notify(buffer);
  /external/mesa3d/src/glx/
query_renderer.c 33 unsigned int buffer[32]; local
67 err = psc->vtable->query_renderer_integer(psc, attribute, buffer);
73 memcpy(value, buffer, sizeof(unsigned int) * values_for_query);
  /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/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
BitReaderBuffer.java 7 private ByteBuffer buffer; field in class:BitReaderBuffer
11 public BitReaderBuffer(ByteBuffer buffer) {
12 this.buffer = buffer;
13 initialPos = buffer.position();
17 byte b = buffer.get(initialPos + position / 8);
31 buffer.position(initialPos + (int) Math.ceil((double) position / 8));
49 return buffer.limit() * 8 - position;
BitWriterBuffer.java 7 private ByteBuffer buffer; field in class:BitWriterBuffer
11 public BitWriterBuffer(ByteBuffer buffer) {
12 this.buffer = buffer;
13 this.initialPos = buffer.position();
22 int current = (buffer.get(initialPos + position / 8));
25 buffer.put(initialPos + position / 8, (byte) (current > 127 ? current - 256 : current));
32 buffer.position(initialPos + position / 8 + ((position % 8 > 0) ? 1 : 0));
  /external/nanopb-c/examples/using_union_messages/
decode.c 59 /* Read the data into buffer */
60 uint8_t buffer[512]; local
61 size_t count = fread(buffer, 1, sizeof(buffer), stdin);
62 pb_istream_t stream = pb_istream_from_buffer(buffer, count);
  /external/nanopb-c/tests/callbacks/
encode_callbacks.c 65 uint8_t buffer[1024]; local
69 stream = pb_ostream_from_buffer(buffer, 1024);
88 if (fwrite(buffer, stream.bytes_written, 1, stdout) != 1)
  /external/nist-sip/java/gov/nist/javax/sip/header/
ExtensionHeaderImpl.java 94 StringBuffer buffer = new StringBuffer(encodedHdr); local
95 while (buffer.length() > 0 && buffer.charAt(0) != ':') {
96 buffer.deleteCharAt(0);
98 buffer.deleteCharAt(0);
99 this.value = buffer.toString().trim();
  /external/nos/test/system-test-harness/src/
nugget_core_tests.cc 91 vector<uint8_t> buffer; local
93 buffer.reserve(1000); // Much more than needed
96 buffer, &buffer), "");
97 ASSERT_GE(buffer.size(), sizeof(stats));
99 memcpy(&stats, buffer.data(), sizeof(stats));
  /external/okhttp/okio/okio/src/main/java/okio/
Buffer.java 35 * <p><strong>Moving data from one buffer to another is fast.</strong> Instead
39 * <p><strong>This buffer grows with your data.</strong> Just like ArrayList,
40 * each buffer starts small. It consumes only the memory it needs to.
42 * <p><strong>This buffer pools its byte arrays.</strong> When you allocate a
47 public final class Buffer implements BufferedSource, BufferedSink, Cloneable {
55 public Buffer() {
58 /** Returns the number of bytes currently in this buffer. */
63 @Override public Buffer buffer() { method in class:Buffer
74 Buffer.this.write(data, offset, byteCount)
    [all...]
  /external/okhttp/okio/okio/src/test/java/okio/
Utf8Test.java 74 Buffer encoded = new Buffer().writeUtf8(a);
75 Buffer expected = new Buffer().write(a.getBytes(Util.UTF_8));
80 Buffer buffer = new Buffer(); local
84 buffer.writeUtf8(a);
85 buffer.writeUtf8(b);
86 buffer.writeUtf8(c)
91 Buffer buffer = new Buffer(); local
100 Buffer buffer = new Buffer(); local
107 Buffer buffer = new Buffer(); local
119 Buffer buffer = new Buffer(); local
131 Buffer buffer = new Buffer(); local
140 Buffer buffer = new Buffer(); local
147 Buffer buffer = new Buffer(); local
158 Buffer buffer = new Buffer(); local
165 Buffer buffer = new Buffer(); local
181 Buffer buffer = new Buffer(); local
196 Buffer buffer = new Buffer(); local
204 Buffer buffer = new Buffer().write(ByteString.decodeHex(hex)); local
    [all...]
  /external/pdfium/fxbarcode/datamatrix/
BC_Base256Encoder.cpp 37 WideString buffer; local
38 buffer += L'\0';
41 buffer += c;
50 int32_t dataCount = buffer.GetLength() - 1;
53 buffer.SetAt(0, static_cast<wchar_t>(*buf) - '0');
64 buffer.SetAt(0, static_cast<wchar_t>(dataCount));
66 buffer.SetAt(0, static_cast<wchar_t>((dataCount / 250) + 249));
67 buffer.Insert(1, static_cast<wchar_t>(dataCount % 250));
73 for (const auto& c : buffer) {
BC_X12Encoder.cpp 39 WideString buffer; local
43 encodeChar(c, buffer, e);
47 int32_t count = buffer.GetLength();
49 writeNextTriplet(context, buffer);
58 handleEOD(context, buffer, e);
61 WideString& buffer,
69 int32_t count = buffer.GetLength();
  /external/perf_data_converter/src/quipper/
binary_data_utils.cc 58 char buffer[kNumHexDigitsInByte + 1]; local
61 snprintf(buffer, sizeof(buffer), "%02x", array[i]);
62 result += buffer;
  /external/perfetto/src/ftrace_reader/test/
scattered_stream_delegate_for_testing.cc 43 std::unique_ptr<uint8_t[]> buffer = local
53 memcpy(buffer.get() + size - remaining, chunk.get(), chunk_size);
58 return buffer;

Completed in 1571 milliseconds

<<11121314151617181920>>