Home
last modified time | relevance | path

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

12

/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersFuzzTests.cs36 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.ToFullArray()); in TestNumbers()
38 Assert.ArrayEqual(new byte[] { 1 }, builder.DataBuffer.ToFullArray()); in TestNumbers()
40 Assert.ArrayEqual(new byte[] { 129, 1 }, builder.DataBuffer.ToFullArray()); in TestNumbers()
42 … Assert.ArrayEqual(new byte[] { 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray()); // First pad in TestNumbers()
44 …Assert.ArrayEqual(new byte[] { 0, 0, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray(… in TestNumbers()
46 …ayEqual(new byte[] { 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray()); … in TestNumbers()
48 … 204, 204, 204, 252, 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray()); … in TestNumbers()
50 … 204, 204, 204, 252, 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.ToFullArray()); … in TestNumbers()
58 …l(new byte[] { 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11 }, builder.DataBuffer.ToFullArray()); in TestNumbers64()
62 …l(new byte[] { 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11 }, builder.DataBuffer.ToFullArray()); in TestNumbers64()
[all …]
DFlatBuffersExampleTests.cs115 var data = fbb.DataBuffer.ToSizedArray(); in CanCreateNewFlatBufferFromScratch()
119 using (var ms = fbb.DataBuffer.ToMemoryStream(fbb.DataBuffer.Position, fbb.Offset)) in CanCreateNewFlatBufferFromScratch()
128 ByteBuffer dataBuffer = fbb.DataBuffer; in CanCreateNewFlatBufferFromScratch()
326 var mons = Monster.GetRootAsMonster(fbb2.DataBuffer); in TestNestedFlatBuffer()
/external/tensorflow/tensorflow/lite/toco/tflite/
Dtypes_test.cc59 DataBuffer::Serialize(src, &buffer_builder); in ToFlatBufferAndBack()
66 DataBuffer::Deserialize(*tensor, *buffer, &result); in ToFlatBufferAndBack()
95 TEST(DataBuffer, EmptyBuffers) { in TEST() argument
98 EXPECT_THAT(DataBuffer::Serialize(array, &builder), HasOffset(0)); in TEST()
109 DataBuffer::Deserialize(*tensor, *buffer, &array); in TEST()
113 TEST(DataBuffer, UnsupportedTypes) { in TEST() argument
119 EXPECT_DEATH(DataBuffer::Serialize(array, &builder), in TEST()
134 EXPECT_DEATH(DataBuffer::Deserialize(*tensor, *buffer, &array), in TEST()
139 TEST(DataBuffer, Float) { in TEST() argument
145 TEST(DataBuffer, Uint8) { in TEST() argument
[all …]
Dtypes.cc24 DataBuffer::FlatBufferOffset CopyStringToBuffer( in CopyStringToBuffer()
43 DataBuffer::FlatBufferOffset CopyBoolToBuffer( in CopyBoolToBuffer()
50 DataBuffer::FlatBufferOffset CopyBuffer( in CopyBuffer()
135 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> DataBuffer::Serialize( in Serialize()
161 void DataBuffer::Deserialize(const ::tflite::Tensor& tensor, in Deserialize()
Dtypes.h30 struct DataBuffer { struct
/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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProfReader.h142 std::unique_ptr<MemoryBuffer> DataBuffer;
151 : DataBuffer(std::move(DataBuffer_)), Line(*DataBuffer, true, '#') {} in TextInstrProfReader()
183 std::unique_ptr<MemoryBuffer> DataBuffer;
203 RawInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in RawInstrProfReader() argument
204 : DataBuffer(std::move(DataBuffer)) {} in RawInstrProfReader()
208 static bool hasFormat(const MemoryBuffer &DataBuffer);
282 std::vector<NamedInstrProfRecord> DataBuffer; variable
393 std::unique_ptr<MemoryBuffer> DataBuffer;
407 IndexedInstrProfReader(std::unique_ptr<MemoryBuffer> DataBuffer) in IndexedInstrProfReader() argument
408 : DataBuffer(std::move(DataBuffer)), RecordIndex(0) {} 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() argument
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()
/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/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DInstrProfReader.cpp277 bool RawInstrProfReader<IntPtrT>::hasFormat(const MemoryBuffer &DataBuffer) { in hasFormat() argument
278 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
281 *reinterpret_cast<const uint64_t *>(DataBuffer.getBufferStart()); in hasFormat()
288 if (!hasFormat(*DataBuffer)) in readHeader()
290 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
293 DataBuffer->getBufferStart()); in readHeader()
300 const char *End = DataBuffer->getBufferEnd(); in readNextHeader()
360 if (Start + ValueDataOffset > DataBuffer->getBufferEnd()) in readHeader()
432 ValueDataStart, (const unsigned char *)DataBuffer->getBufferEnd(), in readValueProfilingData()
497 VDataPtrOrErr.get()->deserializeTo(DataBuffer.back(), nullptr); in readValueProfilingData()
[all …]
/external/flatbuffers/tests/MyGame/Example/
DReferrable.cs38DataBuffer.GetUlong(Table.__offset(4, o1.Value, builder.DataBuffer)).CompareTo(builder.DataBuffer.… in CreateSortedVectorOfReferrable()
/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 …]
/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/libaom/libaom/av1/decoder/
Ddecoder.h133 typedef struct DataBuffer { struct
136 } DataBuffer; argument
229 DataBuffer obu_size_hdr;
/external/python/cpython3/Modules/
Dwinreparse.h39 UCHAR DataBuffer[1]; member
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_pt_win32.h54 PVOID DataBuffer; member
431 UCHAR DataBuffer[1]; member
/external/tensorflow/tensorflow/contrib/ignite/python/ops/
Dignite_dataset_ops.py76 class DataBuffer(Readable): class
442 payload = DataBuffer(self.read_data(result_length - 25))
600 return self._collect_types(field_name, DataBuffer(inner_data))
/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()

12