Home
last modified time | relevance | path

Searched refs:RefCountedBytes (Results 1 – 4 of 4) sorted by relevance

/external/libchrome/base/memory/
Dref_counted_memory.cc35 RefCountedBytes::RefCountedBytes() = default;
37 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer) in RefCountedBytes() function in base::RefCountedBytes
41 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size) in RefCountedBytes() function in base::RefCountedBytes
44 RefCountedBytes::RefCountedBytes(size_t size) : data_(size, 0) {} in RefCountedBytes() function in base::RefCountedBytes
46 scoped_refptr<RefCountedBytes> RefCountedBytes::TakeVector( in TakeVector()
48 auto bytes = MakeRefCounted<RefCountedBytes>(); in TakeVector()
53 const unsigned char* RefCountedBytes::front() const { in front()
59 size_t RefCountedBytes::size() const { in size()
63 RefCountedBytes::~RefCountedBytes() = default;
Dref_counted_memory.h75 class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
77 RefCountedBytes();
80 explicit RefCountedBytes(const std::vector<unsigned char>& initializer);
83 RefCountedBytes(const unsigned char* p, size_t size);
87 explicit RefCountedBytes(size_t size);
92 static scoped_refptr<RefCountedBytes> TakeVector(
111 ~RefCountedBytes() override;
115 DISALLOW_COPY_AND_ASSIGN(RefCountedBytes);
Dref_counted_memory_unittest.cc27 TEST(RefCountedMemoryUnitTest, RefCountedBytes) { in TEST() argument
31 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data); in TEST()
42 mem2 = MakeRefCounted<RefCountedBytes>(kData, arraysize(kData)); in TEST()
51 auto mem = base::MakeRefCounted<RefCountedBytes>(10); in TEST()
128 scoped_refptr<RefCountedMemory> mem2 = RefCountedBytes::TakeVector(&d2); in TEST()
/external/libchrome/mojo/public/cpp/base/
Dref_counted_memory_mojom_traits.cc42 base::MakeRefCounted<base::RefCountedBytes>(buffer.data(), buffer.size()); in Read()