HomeSort by relevance Sort by last modified time
    Searched refs:RefCountedBytes (Results 1 - 4 of 4) sorted by null

  /external/libchrome/base/memory/
ref_counted_memory.cc 35 RefCountedBytes::RefCountedBytes() = default;
37 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer)
41 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size)
44 RefCountedBytes::RefCountedBytes(size_t size) : data_(size, 0) {}
46 scoped_refptr<RefCountedBytes> RefCountedBytes::TakeVector
    [all...]
ref_counted_memory.h 75 class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
77 RefCountedBytes();
79 // Constructs a RefCountedBytes object by copying from |initializer|.
80 explicit RefCountedBytes(const std::vector<unsigned char>& initializer);
82 // Constructs a RefCountedBytes object by copying |size| bytes from |p|.
83 RefCountedBytes(const unsigned char* p, size_t size);
85 // Constructs a RefCountedBytes object by zero-initializing a new vector of
87 explicit RefCountedBytes(size_t size);
89 // Constructs a RefCountedBytes object by performing a swap. (To non
90 // destructively build a RefCountedBytes, use the constructor that takes
    [all...]
ref_counted_memory_unittest.cc 27 TEST(RefCountedMemoryUnitTest, RefCountedBytes) {
31 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data);
42 mem2 = MakeRefCounted<RefCountedBytes>(kData, arraysize(kData));
51 auto mem = base::MakeRefCounted<RefCountedBytes>(10);
128 scoped_refptr<RefCountedMemory> mem2 = RefCountedBytes::TakeVector(&d2);
  /external/libchrome/mojo/public/cpp/base/
ref_counted_memory_mojom_traits.cc 42 base::MakeRefCounted<base::RefCountedBytes>(buffer.data(), buffer.size());

Completed in 154 milliseconds