Searched defs:buffer (Results 201 - 225 of 3848) sorted by relevance

1234567891011>>

/external/nanopb-c/tests/backwards_compatibility/
H A Ddecode_legacy.c180 uint8_t buffer[1024]; local
187 /* Read the data into buffer */
189 count = fread(buffer, 1, sizeof(buffer), stdin);
191 /* Construct a pb_istream_t for reading from the buffer */
192 stream = pb_istream_from_buffer(buffer, count);
/external/nanopb-c/tests/basic_buffer/
H A Ddecode_buffer.c63 uint8_t buffer[Person_size]; local
67 /* Read the data into buffer */
69 count = fread(buffer, 1, sizeof(buffer), stdin);
73 printf("Message does not fit in buffer\n");
77 /* Construct a pb_istream_t for reading from the buffer */
78 stream = pb_istream_from_buffer(buffer, count);
/external/nanopb-c/tests/extensions/
H A Dencode_extensions.c14 uint8_t buffer[1024]; local
35 stream = pb_ostream_from_buffer(buffer, sizeof(buffer));
41 fwrite(buffer, 1, stream.bytes_written, stdout);
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DRecordRoute.java77 protected StringBuffer encodeBody(StringBuffer buffer) { argument
79 buffer.append(LESS_THAN);
81 address.encode(buffer);
83 buffer.append(GREATER_THAN);
87 buffer.append(SEMICOLON);
88 this.parameters.encode(buffer);
90 return buffer;
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DAddressParametersParser.java46 protected AddressParametersParser(String buffer) { argument
47 super(buffer);
/external/pdfium/core/fpdfapi/edit/
H A Dcpdf_flateencoder.cpp38 uint8_t* buffer = nullptr; local
39 ::FlateEncode(m_pAcc->GetData(), m_pAcc->GetSize(), &buffer, &m_dwSize);
41 m_pData = std::unique_ptr<uint8_t, FxFreeDeleter>(buffer);
/external/pdfium/fpdfsdk/
H A Dfpdf_structtree_embeddertest.cpp53 unsigned short buffer[12]; local
54 memset(buffer, 0, sizeof(buffer));
55 // Deliberately pass in a small buffer size to make sure |buffer| remains
57 ASSERT_EQ(24U, FPDF_StructElement_GetAltText(gchild_element, buffer, 1));
58 for (size_t i = 0; i < FX_ArraySize(buffer); ++i)
59 EXPECT_EQ(0U, buffer[i]);
62 ASSERT_EQ(24U, FPDF_StructElement_GetAltText(gchild_element, buffer,
63 sizeof(buffer)));
105 unsigned short buffer[12]; local
[all...]
/external/perf_data_converter/src/quipper/
H A Dbuffer_reader.h12 // Read from a fixed-size data buffer. Does not take ownership of the buffer.
15 // The data source is indicated by |buffer| and is |size| bytes long.
16 BufferReader(const void* buffer, size_t size) argument
17 : buffer_(reinterpret_cast<const char*>(buffer)), offset_(0) {
27 // Reads |size| bytes of the buffer as a null-terminated string into |str|.
34 // The data buffer from which to read.
H A Dbuffer_writer.h12 // Writes data to a fixed-size memory buffer.
15 // The destination buffer is indicated by |buffer| and is |size| bytes long.
16 BufferWriter(void* buffer, size_t size) argument
17 : buffer_(reinterpret_cast<char*>(buffer)), offset_(0) {
32 // Pointer to the data buffer. Does not own the buffer.
35 // Current write offset, in bytes from start of buffer.
/external/protobuf/java/core/src/main/java/com/google/protobuf/
H A DUnsafeByteOperations.java39 * potentially expose the backing buffer of a {@link ByteString} to the application.
42 * guaranteed that the buffer backing the {@link ByteString} will never change! Mutation of a
51 * An unsafe operation that returns a {@link ByteString} that is backed by the provided buffer.
53 * @param buffer the Java NIO buffer to be wrapped
54 * @return a {@link ByteString} backed by the provided buffer
56 public static ByteString unsafeWrap(ByteBuffer buffer) { argument
57 if (buffer.hasArray()) {
58 final int offset = buffer.arrayOffset();
59 return ByteString.wrap(buffer
[all...]
/external/protobuf/src/google/protobuf/io/
H A Dcoded_stream_inl.h50 inline bool CodedInputStream::InternalReadStringInline(string* buffer, argument
55 STLStringResizeUninitialized(buffer, size);
56 std::pair<char*, bool> z = as_string_data(buffer);
67 return ReadStringFallback(buffer, size);
70 inline bool CodedInputStream::InternalReadRawInline(void* buffer, int size) { argument
73 // Reading past end of buffer. Copy what we have, then refresh.
74 memcpy(buffer, buffer_, current_buffer_size);
75 buffer = reinterpret_cast<uint8*>(buffer) + current_buffer_size;
81 memcpy(buffer, buffer
[all...]
/external/puffin/src/
H A Dpuff_reader.cc17 // Reads a value from the buffer in big-endian mode.
18 inline uint16_t ReadByteArrayToUint16(const uint8_t* buffer) { argument
19 return (*buffer << 8) | *(buffer + 1);
92 pd.read_fn = [this, length](uint8_t* buffer, size_t count) mutable {
94 memcpy(buffer, &puff_buf_in_[index_], count);
/external/selinux/libsepol/cil/test/unit/
H A Dtest_cil_lexer.c40 char *buffer = malloc(str_size + 2); local
42 memset(buffer+str_size, 0, 2);
43 strncpy(buffer, test_str, str_size);
45 int rc = cil_lexer_setup(buffer, str_size + 2);
48 free(buffer);
54 char *buffer = malloc(str_size + 2); local
56 memset(buffer+str_size, 0, 2);
57 strcpy(buffer, test_str);
59 cil_lexer_setup(buffer, str_size + 2);
98 free(buffer);
[all...]
/external/skia/src/opts/
H A DSkUtils_opts.h17 static void memsetT(T buffer[], T value, int count) { argument
24 SkNx<N,T>(value).store(buffer);
25 buffer += N;
29 *buffer++ = value;
33 /*not static*/ inline void memset16(uint16_t buffer[], uint16_t value, int count) { argument
34 memsetT(buffer, value, count);
36 /*not static*/ inline void memset32(uint32_t buffer[], uint32_t value, int count) { argument
37 memsetT(buffer, value, count);
39 /*not static*/ inline void memset64(uint64_t buffer[], uint64_t value, int count) { argument
40 memsetT(buffer, valu
[all...]
/external/skqp/src/opts/
H A DSkUtils_opts.h17 static void memsetT(T buffer[], T value, int count) { argument
24 SkNx<N,T>(value).store(buffer);
25 buffer += N;
29 *buffer++ = value;
33 /*not static*/ inline void memset16(uint16_t buffer[], uint16_t value, int count) { argument
34 memsetT(buffer, value, count);
36 /*not static*/ inline void memset32(uint32_t buffer[], uint32_t value, int count) { argument
37 memsetT(buffer, value, count);
39 /*not static*/ inline void memset64(uint64_t buffer[], uint64_t value, int count) { argument
40 memsetT(buffer, valu
[all...]
/external/syslinux/com32/gpllib/disk/
H A Dmbrs.c20 * @buffer: pre-allocated buffer
21 * @buffer_size: @buffer size
23 void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size) argument
31 strlcpy(buffer, "No bootloader", buffer_size - 1);
34 strlcpy(buffer, "ThinkPad", buffer_size - 1);
37 strlcpy(buffer, "Acer 3", buffer_size - 1);
42 strlcpy(buffer, "Windows", buffer_size - 1);
44 strlcpy(buffer, "DiskCryptor", buffer_size - 1);
46 strlcpy(buffer, "Syslinu
[all...]
/external/syslinux/com32/hdt/
H A Dhdt-menu-summary.c34 char buffer[SUBMENULEN + 1]; local
37 snprintf(buffer, sizeof(buffer), " Summary (%d CPU) ", hardware->physical_cpu_count);
38 menu->menu = add_menu(buffer, -1);
43 snprintf(buffer, sizeof buffer, "CPU Vendor : %s", hardware->cpu.vendor);
46 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
49 snprintf(buffer, sizeof buffer, "CPU Model : %s", hardware->cpu.model);
52 add_item(buffer, statbuffe
[all...]
H A Dhdt-menu-vesa.c35 char buffer[SUBMENULEN + 1]; local
42 snprintf(buffer, sizeof buffer, "VESA Version: %d.%d",
46 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
49 snprintf(buffer, sizeof buffer, "Vendor : %s", hardware->vesa.vendor);
52 add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0);
55 snprintf(buffer, sizeof buffer, "Product : %s", hardware->vesa.product);
58 add_item(buffer, statbuffe
86 char buffer[56]; local
112 char buffer[15]; local
[all...]
/external/syslinux/gpxe/src/arch/i386/image/
H A Dpxe_image.c76 userptr_t buffer = real_to_user ( 0, 0x7c00 ); local
100 if ( ( rc = prep_segment ( buffer, filesz, memsz ) ) != 0 ) {
107 memcpy_user ( buffer, 0, image->data, 0, filesz );
/external/tensorflow/tensorflow/compiler/xla/service/
H A Dhlo_buffer.cc68 std::ostream& operator<<(std::ostream& out, const HloBuffer& buffer) { argument
69 out << buffer.ToString();
/external/tensorflow/tensorflow/contrib/lite/toco/graph_transformations/
H A Dresolve_pad_attributes.cc44 std::vector<int> buffer = array.GetBuffer<ArrayDataType::kInt32>().data; local
47 op->left_padding.push_back(buffer[i * 2]);
48 op->right_padding.push_back(buffer[i * 2 + 1]);
/external/tensorflow/tensorflow/core/platform/
H A Dstacktrace_handler_test.cc58 char buffer[READ_BUFFER_SIZE]; local
61 int read_length = read(test_pipe[0], buffer, READ_BUFFER_SIZE);
63 child_output += std::string(buffer, read_length);
/external/tpm2/
H A DPolicyLocality.c27 BYTE *buffer; local
38 buffer = marshalBuffer;
40 marshalSize = TPMA_LOCALITY_Marshal(&in->locality, &buffer, &bufferSize);
47 buffer = prevSetting;
49 TPMA_LOCALITY_Marshal(&session->commandLocality, &buffer, &bufferSize);
106 buffer = prevSetting;
107 TPMA_LOCALITY_Unmarshal(&session->commandLocality, &buffer,
H A DPolicyPCR.c26 BYTE *buffer; local
74 buffer = pcrs;
76 pcrSize = TPML_PCR_SELECTION_Marshal(&in->pcrs, &buffer, &bufferSize);
H A DSequenceComplete_fp.h14 TPM2B_MAX_BUFFER buffer; member in struct:__anon27167
29 // parameter fields in |target| from |buffer|.
32 BYTE** buffer,
35 // Marshals response handles and parameters from |source| to |buffer|. Computes
41 BYTE** buffer,
46 // global response buffer and computes |*response_handle_buffer_size| and

Completed in 666 milliseconds

1234567891011>>