OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
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
scoped_refptr<
RefCountedBytes
>
RefCountedBytes
::TakeVector(
43
scoped_refptr<
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 scoped_refptr<
RefCountedBytes
> TakeVector(
95
~
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 1344 milliseconds