Home
last modified time | relevance | path

Searched refs:DataBuffer (Results 1 – 23 of 23) sorted by relevance

/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersFuzzTests.cs36 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestNumbers()
38 Assert.ArrayEqual(new byte[] { 1 }, builder.DataBuffer.Data); in TestNumbers()
40 Assert.ArrayEqual(new byte[] { 129, 1 }, builder.DataBuffer.Data); in TestNumbers()
42 Assert.ArrayEqual(new byte[] { 0, 255, 129, 1 }, builder.DataBuffer.Data); // First pad in TestNumbers()
44 …Assert.ArrayEqual(new byte[] { 0, 0, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // Se… in TestNumbers()
46 …rayEqual(new byte[] { 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // no pad in TestNumbers()
48 … 204, 204, 204, 252, 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // third … in TestNumbers()
50 …, 204, 204, 204, 252, 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // no pad in TestNumbers()
58 …ArrayEqual(new byte[] { 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11 }, builder.DataBuffer.Data); in TestNumbers64()
62 …ArrayEqual(new byte[] { 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11 }, builder.DataBuffer.Data); in TestNumbers64()
[all …]
DFlatBuffersExampleTests.cs102 … using (var ms = new MemoryStream(fbb.DataBuffer.Data, fbb.DataBuffer.Position, fbb.Offset)) in CanCreateNewFlatBufferFromScratch()
109 TestBuffer(fbb.DataBuffer); in CanCreateNewFlatBufferFromScratch()
113 Monster monster = Monster.GetRootAsMonster(fbb.DataBuffer); in CanCreateNewFlatBufferFromScratch()
126 Assert.IsTrue(Monster.LookupByKey(sortMons, "Frodo", fbb.DataBuffer) != null); in CanCreateNewFlatBufferFromScratch()
127 Assert.IsTrue(Monster.LookupByKey(sortMons, "Barney", fbb.DataBuffer) != null); in CanCreateNewFlatBufferFromScratch()
128 Assert.IsTrue(Monster.LookupByKey(sortMons, "Wilma", fbb.DataBuffer)!= null); in CanCreateNewFlatBufferFromScratch()
164 TestBuffer(fbb.DataBuffer); in CanCreateNewFlatBufferFromScratch()
273 var mons = Monster.GetRootAsMonster(fbb2.DataBuffer); in TestNestedFlatBuffer()
/external/llvm/include/llvm/ProfileData/
DInstrProfReader.h125 std::unique_ptr<MemoryBuffer> DataBuffer;
136 : DataBuffer(std::move(DataBuffer_)), Line(*DataBuffer, true, '#'), in TextInstrProfReader()
166 std::unique_ptr<MemoryBuffer> DataBuffer;
190 RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in RawInstrProfReader() argument
191 : DataBuffer(std::move(DataBuffer)) { } in RawInstrProfReader()
193 static bool hasFormat(const MemoryBuffer &DataBuffer);
258 std::vector<InstrProfRecord> DataBuffer; variable
363 std::unique_ptr<MemoryBuffer> DataBuffer;
381 IndexedInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in IndexedInstrProfReader() argument
382 : DataBuffer(std::move(DataBuffer)), Index(nullptr) {} in IndexedInstrProfReader()
[all …]
/external/webrtc/talk/app/webrtc/
Ddatachannelinterface.h69 struct DataBuffer { struct
70 DataBuffer(const rtc::Buffer& data, bool binary) in DataBuffer() function
75 explicit DataBuffer(const std::string& text) in DataBuffer() function
93 virtual void OnMessage(const DataBuffer& buffer) = 0; argument
151 virtual bool Send(const DataBuffer& buffer) = 0;
Ddatachannel.h150 virtual bool Send(const DataBuffer& buffer);
219 DataBuffer* Front();
223 void Push(DataBuffer* packet);
230 std::deque<DataBuffer*> packets_;
252 bool SendDataMessage(const DataBuffer& buffer, bool queue_if_blocked);
253 bool QueueSendDataMessage(const DataBuffer& buffer);
294 PROXY_METHOD1(bool, Send, const DataBuffer&)
Ddatachannel.cc93 DataBuffer* DataChannel::PacketQueue::Front() { in Front()
106 void DataChannel::PacketQueue::Push(DataBuffer* packet) { in Push()
246 bool DataChannel::Send(const DataBuffer& buffer) { in Send()
383 rtc::scoped_ptr<DataBuffer> buffer(new DataBuffer(payload, binary)); in OnDataReceived()
514 rtc::scoped_ptr<DataBuffer> buffer(queued_received_data_.Front()); in DeliverQueuedReceivedData()
529 DataBuffer* buffer = queued_send_data_.Front(); in SendQueuedDataMessages()
543 bool DataChannel::SendDataMessage(const DataBuffer& buffer, in SendDataMessage()
589 bool DataChannel::QueueSendDataMessage(const DataBuffer& buffer) { in QueueSendDataMessage()
595 queued_send_data_.Push(new DataBuffer(buffer)); in QueueSendDataMessage()
609 rtc::scoped_ptr<DataBuffer> buf(control_packets.Front()); in SendQueuedControlMessages()
[all …]
Ddatachannel_unittest.cc51 void OnMessage(const webrtc::DataBuffer& buffer) { in OnMessage()
154 webrtc::DataBuffer buffer("abcd"); in TEST_F()
176 webrtc::DataBuffer buffer("abcd"); in TEST_F()
193 webrtc::DataBuffer buffer("abcd"); in TEST_F()
258 webrtc::DataBuffer buffer("some data"); in TEST_F()
291 webrtc::DataBuffer buffer("data"); in TEST_F()
302 webrtc::DataBuffer buffer("foo"); in TEST_F()
316 webrtc::DataBuffer buffer("foo"); in TEST_F()
338 webrtc::DataBuffer buffer("data"); in TEST_F()
352 webrtc::DataBuffer buffer("abcd"); in TEST_F()
[all …]
Dpeerconnectionendtoend_unittest.cc136 webrtc::DataBuffer buffer(kDummyData); in TestDataChannelSendAndReceive()
319 caller_dc_1->Send(webrtc::DataBuffer(message_1)); in TEST_F()
322 caller_dc_2->Send(webrtc::DataBuffer(message_2)); in TEST_F()
Dpeerconnectioninterface_unittest.cc262 using webrtc::DataBuffer;
1284 EXPECT_FALSE(data1->Send(DataBuffer(data_to_send1))); in TEST_F()
1292 EXPECT_TRUE(data1->Send(DataBuffer(data_to_send1))); in TEST_F()
1293 EXPECT_TRUE(data2->Send(DataBuffer(data_to_send2))); in TEST_F()
1306 EXPECT_TRUE(data2->Send(DataBuffer(data_to_send2))); in TEST_F()
1338 EXPECT_FALSE(data1->Send(DataBuffer(buffer, true))); in TEST_F()
1391 EXPECT_FALSE(received_channel->Send(DataBuffer("something"))); in TEST_F()
Dpeerconnection_unittest.cc75 using webrtc::DataBuffer;
1141 dc->Send(DataBuffer(data)); in SendRtpData()
1636 initializing_client()->data_channel()->Send(DataBuffer(data)); in TEST_F()
1640 receiving_client()->data_channel()->Send(DataBuffer(data)); in TEST_F()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp254 bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
255 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
258 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
265 if (!hasFormat(*DataBuffer)) in readHeader()
267 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
270 DataBuffer->getBufferStart()); in readHeader()
277 const char *End = DataBuffer->getBufferEnd(); in readNextHeader()
338 if (Start + ValueDataOffset > DataBuffer->getBufferEnd()) in readHeader()
411 ValueDataStart, (const unsigned char *)DataBuffer->getBufferEnd(), in readValueProfilingData()
474 VDataPtrOrErr.get()->deserializeTo(DataBuffer.back(), nullptr); in readValueProfilingData()
[all …]
/external/deqp/framework/opengl/simplereference/
DsglrReferenceContext.hpp391 class DataBuffer : public NamedObject class
394 DataBuffer (deUint32 name) : NamedObject(name) {} in DataBuffer() function in sglr::rc::DataBuffer
395 ~DataBuffer (void) {} in ~DataBuffer()
433 rc::DataBuffer* bufferBinding;
440 rc::DataBuffer* m_elementArrayBufferBinding;
778 void deleteBuffer (rc::DataBuffer* buffer);
808 void setBufferBinding (deUint32 target, rc::DataBuffer* buffer);
809 rc::DataBuffer* getBufferBinding (deUint32 target) const;
882 rc::ObjectManager<rc::DataBuffer> m_buffers;
909 rc::DataBuffer* m_arrayBufferBinding;
[all …]
DsglrReferenceContext.cpp480 vector<DataBuffer*> buffers; in ~ReferenceContext()
482 for (vector<DataBuffer*>::iterator i = buffers.begin(); i != buffers.end(); i++) in ~ReferenceContext()
2411 void ReferenceContext::setBufferBinding (deUint32 target, DataBuffer* buffer) in setBufferBinding()
2413 DataBuffer** bindingPoint = DE_NULL; in setBufferBinding()
2444 DataBuffer* ReferenceContext::getBufferBinding (deUint32 target) const in getBufferBinding()
2469 rc::DataBuffer* bufObj = DE_NULL; in bindBuffer()
2476 bufObj = new DataBuffer(buffer); in bindBuffer()
2499 DataBuffer* bufObj = DE_NULL; in deleteBuffers()
2511 void ReferenceContext::deleteBuffer (DataBuffer* buffer) in deleteBuffer()
2568 DataBuffer* buffer = getBufferBinding(target); in bufferData()
[all …]
/external/webrtc/talk/app/webrtc/objc/
DRTCDataChannel+Internal.h35 @property(nonatomic, readonly) const webrtc::DataBuffer* dataBuffer;
37 - (instancetype)initWithDataBuffer:(const webrtc::DataBuffer&)buffer;
DRTCDataChannel.mm55 void OnMessage(const DataBuffer& buffer) override {
148 rtc::scoped_ptr<webrtc::DataBuffer> _dataBuffer;
156 _dataBuffer.reset(new webrtc::DataBuffer(buffer, isBinary));
174 - (instancetype)initWithDataBuffer:(const webrtc::DataBuffer&)buffer { argument
176 _dataBuffer.reset(new webrtc::DataBuffer(buffer));
181 - (const webrtc::DataBuffer*)dataBuffer {
/external/libmojo/mojo/edk/js/
Ddrain_data.h49 using DataBuffer = std::vector<char>; variable
56 ScopedVector<DataBuffer> data_buffers_;
Ddrain_data.cc70 DataBuffer* data_buffer = new DataBuffer(p, p + num_bytes); in ReadData()
/external/flatbuffers/tests/MyGame/Example/
DMonster.cs132 …able.__offset(10, o1.Value, builder.DataBuffer), Table.__offset(10, o2.Value, builder.DataBuffer),… in CreateMySortedVectorOfTables()
/external/flatbuffers/samples/
DSampleBinary.cs67 var buf = builder.DataBuffer; in Main()
/external/webrtc/talk/app/webrtc/test/
Dmockpeerconnectionobservers.h104 void OnMessage(const DataBuffer& buffer) override { in OnMessage()
/external/flatbuffers/net/FlatBuffers/
DFlatBufferBuilder.cs603 public ByteBuffer DataBuffer { get { return _bb; } } property in FlatBuffers.FlatBufferBuilder
/external/webrtc/talk/app/webrtc/java/jni/
Dpeerconnection_jni.cc110 using webrtc::DataBuffer;
610 void OnMessage(const DataBuffer& buffer) override { in OnMessage()
884 bool ret = ExtractNativeDC(jni, j_dc)->Send(DataBuffer( in JOW()
/external/flatbuffers/docs/source/
DTutorial.md1137 var buf = builder.DataBuffer; // Of type `FlatBuffers.ByteBuffer`.