Searched refs:RefCountedBytes (Results 1 – 4 of 4) sorted by relevance
35 RefCountedBytes::RefCountedBytes() = default;37 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer) in RefCountedBytes() function in base::RefCountedBytes41 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size) in RefCountedBytes() function in base::RefCountedBytes44 RefCountedBytes::RefCountedBytes(size_t size) : data_(size, 0) {} in RefCountedBytes() function in base::RefCountedBytes46 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;
75 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);
27 TEST(RefCountedMemoryUnitTest, RefCountedBytes) { in TEST() argument31 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()
42 base::MakeRefCounted<base::RefCountedBytes>(buffer.data(), buffer.size()); in Read()