Home | History | Annotate | Download | only in lib

Lines Matching refs:Pickle

14 #include "base/pickle.h"
42 base::Pickle pickle;
43 Traits::Write(&pickle, value);
48 DCHECK_EQ(sizer.payload_size(), pickle.payload_size());
51 size_t total_size = pickle.payload_size() + sizeof(ArrayHeader);
54 // Allocate a uint8 array, initialize its header, and copy the Pickle in.
58 header->num_elements = static_cast<uint32_t>(pickle.payload_size());
60 pickle.payload(), pickle.payload_size());
71 // Construct a temporary base::Pickle view over the array data. Note that
76 // and base::Pickle expects to view data like this:
81 // Pickle's payload_size does not, we need to adjust the stored value
82 // momentarily so Pickle can view the data.
89 // header. Pickle will infer from this that the header is 8 bytes long,
91 base::Pickle pickle_view(reinterpret_cast<const char*>(header),