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

  /external/libchrome/base/memory/
ref_counted_memory.cc 32 RefCountedBytes::RefCountedBytes() {}
34 RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer)
38 RefCountedBytes::RefCountedBytes(const unsigned char* p, size_t size)
41 RefCountedBytes* RefCountedBytes::TakeVector(
43 RefCountedBytes* bytes = new RefCountedBytes;
    [all...]
ref_counted_memory.h 71 class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
73 RefCountedBytes();
75 // Constructs a RefCountedBytes object by _copying_ from |initializer|.
76 explicit RefCountedBytes(const std::vector<unsigned char>& initializer);
78 // Constructs a RefCountedBytes object by copying |size| bytes from |p|.
79 RefCountedBytes(const unsigned char* p, size_t size);
81 // Constructs a RefCountedBytes object by performing a swap. (To non
82 // destructively build a RefCountedBytes, use the constructor that takes a
84 static RefCountedBytes* TakeVector(std::vector<unsigned char>* to_destroy);
94 ~RefCountedBytes() override
    [all...]
ref_counted_memory_unittest.cc 21 TEST(RefCountedMemoryUnitTest, RefCountedBytes) {
25 scoped_refptr<RefCountedMemory> mem = RefCountedBytes::TakeVector(&data);
36 mem2 = new RefCountedBytes(data2, 3);
64 scoped_refptr<RefCountedMemory> mem2 = RefCountedBytes::TakeVector(&d2);

Completed in 4902 milliseconds