Searched refs:Buffer (Results 1 - 25 of 701) sorted by relevance

1234567891011>>

/external/llvm/lib/Support/
H A DLineIterator.cpp15 line_iterator::line_iterator(const MemoryBuffer &Buffer, char CommentMarker) argument
16 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr),
18 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr,
22 if (Buffer.getBufferSize()) {
23 assert(Buffer.getBufferEnd()[0] == '\0');
29 assert(Buffer && "Cannot advance past the end!");
32 assert(Pos == Buffer
[all...]
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/
H A Dsctputils.h36 class Buffer;
42 bool ParseDataChannelOpenMessage(const rtc::Buffer& payload,
46 bool ParseDataChannelOpenAckMessage(const rtc::Buffer& payload);
50 rtc::Buffer* payload);
52 void WriteDataChannelOpenAckMessage(rtc::Buffer* payload);
/external/chromium_org/mojo/public/cpp/bindings/lib/
H A Dbuffer.h13 // Buffer provides a way to allocate memory. Allocations are 8-byte aligned and
14 // zero-initialized. Allocations remain valid for the lifetime of the Buffer.
15 class Buffer { class in namespace:mojo::internal
17 virtual ~Buffer() {}
/external/llvm/include/llvm/ExecutionEngine/
H A DObjectBuffer.h35 ObjectBuffer(MemoryBuffer* Buf) : Buffer(Buf) {}
42 return MemoryBuffer::getMemBuffer(Buffer->getBuffer(),
43 Buffer->getBufferIdentifier(), false);
46 const char *getBufferStart() const { return Buffer->getBufferStart(); }
47 size_t getBufferSize() const { return Buffer->getBufferSize(); }
48 StringRef getBuffer() const { return Buffer->getBuffer(); }
52 std::unique_ptr<MemoryBuffer> Buffer; member in class:llvm::ObjectBuffer
70 // Make the data accessible via the ObjectBuffer::Buffer
71 Buffer.reset(MemoryBuffer::getMemBuffer(StringRef(SV.data(), SV.size()),
/external/llvm/utils/count/
H A Dcount.c15 char Buffer[4096], *End; local
32 NumRead = fread(Buffer, 1, sizeof(Buffer), stdin);
35 if (Buffer[i] == '\n')
37 } while (NumRead == sizeof(Buffer));
/external/chromium_org/mojo/services/html_viewer/
H A Dwebclipboard_impl.h19 virtual uint64_t sequenceNumber(Buffer);
20 virtual bool isFormatAvailable(Format, Buffer);
22 Buffer,
24 virtual blink::WebString readPlainText(Buffer);
25 virtual blink::WebString readHTML(Buffer buffer,
30 virtual blink::WebString readCustomData(Buffer, const blink::WebString& type);
39 mojo::Clipboard::Type ConvertBufferType(Buffer buffer);
/external/llvm/unittests/Support/
H A DLineIteratorTest.cpp20 std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer("line 1\n"
24 line_iterator I = line_iterator(*Buffer), E;
44 std::unique_ptr<MemoryBuffer> Buffer(
51 line_iterator I = line_iterator(*Buffer, '#'), E;
71 std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer("\n\n\n"
77 line_iterator I = line_iterator(*Buffer), E;
94 std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer(""));
95 EXPECT_TRUE(line_iterator(*Buffer).is_at_eof());
96 EXPECT_EQ(line_iterator(), line_iterator(*Buffer));
98 Buffer
[all...]
H A DFileOutputBufferTest.cpp41 std::unique_ptr<FileOutputBuffer> Buffer; local
42 ASSERT_NO_ERROR(FileOutputBuffer::create(File1, 8192, Buffer));
44 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20);
46 memcpy(Buffer->getBufferEnd() - 20, "AABBCCDDEEFFGGHHIIJJ", 20);
48 ASSERT_NO_ERROR(Buffer->commit());
77 std::unique_ptr<FileOutputBuffer> Buffer; local
78 ASSERT_NO_ERROR(FileOutputBuffer::create(File3, 8192000, Buffer));
80 memcpy(Buffer->getBufferStart(), "AABBCCDDEEFFGGHHIIJJ", 20);
82 memcpy(Buffer->getBufferEnd() - 20, "AABBCCDDEEFFGGHHIIJJ", 20);
84 ASSERT_NO_ERROR(Buffer
97 std::unique_ptr<FileOutputBuffer> Buffer; local
[all...]
/external/llvm/include/llvm/Support/
H A DLineIterator.h33 const MemoryBuffer *Buffer; member in class:llvm::line_iterator
41 line_iterator() : Buffer(nullptr) {}
44 explicit line_iterator(const MemoryBuffer &Buffer, char CommentMarker = '\0');
47 bool is_at_eof() const { return !Buffer; }
71 return LHS.Buffer == RHS.Buffer &&
/external/chromium_org/content/renderer/gpu/
H A Dcompositor_software_output_device.h48 class Buffer { class in class:content::CompositorSoftwareOutputDevice
50 explicit Buffer(unsigned id, scoped_ptr<cc::SharedBitmap> bitmap);
51 ~Buffer();
61 Buffer* parent() const { return parent_; }
62 void SetParent(Buffer* parent, const gfx::Rect& damage);
64 bool FindDamageDifferenceFrom(Buffer* buffer, SkRegion* result) const;
70 Buffer* parent_;
73 DISALLOW_COPY_AND_ASSIGN(Buffer);
80 bool operator()(const Buffer* buffer) const {
89 Buffer* CreateBuffe
[all...]
/external/compiler-rt/test/profile/
H A Dinstrprof-without-libc.c26 static char Buffer[MaxSize]; local
31 int Write = __llvm_profile_write_buffer(Buffer);
32 if (__llvm_profile_write_buffer(Buffer))
44 if (fwrite(Buffer, 1, Size, File) != Size)
/external/chromium_org/content/renderer/
H A Dwebclipboard_impl.h25 virtual uint64 sequenceNumber(Buffer buffer);
26 virtual bool isFormatAvailable(Format format, Buffer buffer);
28 Buffer buffer, bool* contains_filenames);
29 virtual blink::WebString readPlainText(Buffer buffer);
31 Buffer buffer,
35 virtual blink::WebData readImage(Buffer buffer);
37 Buffer buffer, const blink::WebString& type);
51 bool ConvertBufferType(Buffer, ui::ClipboardType*);
/external/chromium_org/gpu/command_buffer/common/
H A Dbuffer.h42 // Buffer owns a piece of shared-memory of a certain size.
43 class GPU_EXPORT Buffer : public base::RefCountedThreadSafe<Buffer> { class in namespace:gpu
45 explicit Buffer(scoped_ptr<BufferBacking> backing);
55 friend class base::RefCountedThreadSafe<Buffer>;
56 ~Buffer();
62 DISALLOW_COPY_AND_ASSIGN(Buffer);
72 static inline scoped_refptr<Buffer> MakeBufferFromSharedMemory(
75 return new Buffer(MakeBackingFromSharedMemory(shared_memory.Pass(), size));
H A Dbuffer.cc25 Buffer::Buffer(scoped_ptr<BufferBacking> backing) function in class:gpu::Buffer
29 DCHECK(memory_) << "The memory must be mapped to create a Buffer";
32 Buffer::~Buffer() {}
34 void* Buffer::GetDataAddress(uint32 data_offset, uint32 data_size) const {
H A Dcommand_buffer_mock.cc11 .WillByDefault(testing::Return(scoped_refptr<gpu::Buffer>()));
/external/chromium_org/third_party/WebKit/public/platform/
H A DWebClipboard.h56 enum Buffer { enum in class:blink::WebClipboard
65 virtual uint64_t sequenceNumber(Buffer) { return 0; }
67 virtual bool isFormatAvailable(Format, Buffer) { return false; }
70 Buffer, bool* containsFilenames) { return WebVector<WebString>(); }
71 virtual WebString readPlainText(Buffer) { return WebString(); }
78 Buffer buffer, WebURL* pageURL, unsigned* fragmentStart,
80 virtual WebData readImage(Buffer) { return WebData(); }
82 Buffer, const WebString& type) { return WebString(); }
69 readAvailableTypes( Buffer, bool* containsFilenames) argument
81 readCustomData( Buffer, const WebString& type) argument
/external/llvm/lib/IRReader/
H A DIRReader.cpp32 static Module *getLazyIRModule(MemoryBuffer *Buffer, SMDiagnostic &Err, argument
34 if (isBitcode((const unsigned char *)Buffer->getBufferStart(),
35 (const unsigned char *)Buffer->getBufferEnd())) {
37 ErrorOr<Module *> ModuleOrErr = getLazyBitcodeModule(Buffer, Context);
39 Err = SMDiagnostic(Buffer->getBufferIdentifier(), SourceMgr::DK_Error,
41 // getLazyBitcodeModule does not take ownership of the Buffer in the
43 delete Buffer;
49 return ParseAssembly(Buffer, nullptr, Err, Context);
65 Module *llvm::ParseIR(MemoryBuffer *Buffer, SMDiagnostic &Err, argument
69 if (isBitcode((const unsigned char *)Buffer
[all...]
/external/libnfc-nxp/src/
H A DphFriNfc_NdefRecord.c55 * \param[in] Buffer The data buffer holding the NDEF Message, as provided by the caller.
87 NFCSTATUS phFriNfc_NdefRecord_GetRecords( uint8_t *Buffer, argument
105 if (Buffer == NULL || BufferLength == 0 || NumberOfRawRecords == NULL)
135 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) !=
148 if ((*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) ==
160 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB &&
161 (*Buffer & PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) == PH_FRINFC_NDEFRECORD_TNF_UNCHANGED)
171 if ( (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB &&
172 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_UNKNOWN &&
173 (*Buffer
548 phFriNfc_NdefRecord_Generate(phFriNfc_NdefRecord_t *Record, uint8_t *Buffer, uint32_t MaxBufferSize, uint32_t *BytesWritten) argument
[all...]
/external/chromium_org/mojo/public/js/bindings/
H A Dbuffer.js17 function Buffer(sizeOrArrayBuffer) {
27 Object.defineProperty(Buffer.prototype, "byteLength", {
31 Buffer.prototype.alloc = function(size) {
45 Buffer.prototype.grow = function(size) {
52 Buffer.prototype.trim = function() {
57 Buffer.prototype.getUint8 = function(offset) {
60 Buffer.prototype.getUint16 = function(offset) {
63 Buffer.prototype.getUint32 = function(offset) {
66 Buffer.prototype.getUint64 = function(offset) {
78 Buffer
[all...]
/external/clang/lib/Serialization/
H A DGeneratePCH.cpp34 SemaPtr(nullptr), Stream(Buffer), Writer(Stream),
56 Out->write((char *)&Buffer.front(), Buffer.size());
62 Buffer.clear();
/external/llvm/examples/OCaml-Kaleidoscope/Chapter2/
H A Dlexer.ml11 let buffer = Buffer.create 1 in
12 Buffer.add_char buffer c;
17 let buffer = Buffer.create 1 in
18 Buffer.add_char buffer c;
34 Buffer.add_char buffer c;
37 [< 'Token.Number (float_of_string (Buffer.contents buffer)); stream >]
41 Buffer.add_char buffer c;
44 match Buffer.contents buffer with
/external/llvm/examples/OCaml-Kaleidoscope/Chapter3/
H A Dlexer.ml11 let buffer = Buffer.create 1 in
12 Buffer.add_char buffer c;
17 let buffer = Buffer.create 1 in
18 Buffer.add_char buffer c;
34 Buffer.add_char buffer c;
37 [< 'Token.Number (float_of_string (Buffer.contents buffer)); stream >]
41 Buffer.add_char buffer c;
44 match Buffer.contents buffer with
/external/llvm/examples/OCaml-Kaleidoscope/Chapter4/
H A Dlexer.ml11 let buffer = Buffer.create 1 in
12 Buffer.add_char buffer c;
17 let buffer = Buffer.create 1 in
18 Buffer.add_char buffer c;
34 Buffer.add_char buffer c;
37 [< 'Token.Number (float_of_string (Buffer.contents buffer)); stream >]
41 Buffer.add_char buffer c;
44 match Buffer.contents buffer with
/external/llvm/examples/OCaml-Kaleidoscope/Chapter5/
H A Dlexer.ml11 let buffer = Buffer.create 1 in
12 Buffer.add_char buffer c;
17 let buffer = Buffer.create 1 in
18 Buffer.add_char buffer c;
34 Buffer.add_char buffer c;
37 [< 'Token.Number (float_of_string (Buffer.contents buffer)); stream >]
41 Buffer.add_char buffer c;
44 match Buffer.contents buffer with
/external/llvm/examples/OCaml-Kaleidoscope/Chapter6/
H A Dlexer.ml11 let buffer = Buffer.create 1 in
12 Buffer.add_char buffer c;
17 let buffer = Buffer.create 1 in
18 Buffer.add_char buffer c;
34 Buffer.add_char buffer c;
37 [< 'Token.Number (float_of_string (Buffer.contents buffer)); stream >]
41 Buffer.add_char buffer c;
44 match Buffer.contents buffer with

Completed in 667 milliseconds

1234567891011>>