Home | History | Annotate | Download | only in base

Lines Matching defs:Pickle

17 class Pickle;
19 // PickleIterator reads data from a Pickle. The Pickle object must remain valid
24 explicit PickleIterator(const Pickle& pickle);
26 // Methods for reading the payload of the Pickle. To read from the start of
27 // the Pickle, create a PickleIterator from a Pickle. If successful, these
62 // Read Type from Pickle.
79 // Pointers to the Pickle data.
88 // The Pickle class supports appending primitive values (ints, strings, etc.)
89 // to a pickle instance. The Pickle instance grows its internal memory buffer
91 // buffer is exposed as the "data" of the Pickle. This "data" can be passed
92 // to a Pickle object to initialize it for reading.
94 // When reading from a Pickle object, it is important for the consumer to know
95 // what value types to read and in what order to read them as the Pickle does
98 // The Pickle's data has a header which contains the size of the Pickle's
100 // space is controlled by the header_size parameter passed to the Pickle
103 class BASE_EXPORT Pickle {
105 // Initialize a Pickle object using the default header size.
106 Pickle();
108 // Initialize a Pickle object with the specified header size in bytes, which
109 // must be greater-than-or-equal-to sizeof(Pickle::Header). The header size
111 explicit Pickle(int header_size);
113 // Initializes a Pickle from a const block of data. The data is not copied;
114 // instead the data is merely referenced by this Pickle. Only const methods
115 // should be used on the Pickle when initialized this way. The header
117 Pickle(const char* data, int data_len);
119 // Initializes a Pickle as a deep copy of another Pickle.
120 Pickle(const Pickle& other);
127 virtual ~Pickle();
130 Pickle& operator=(const Pickle& other);
132 // Returns the size of the Pickle's data.
135 // Returns the data for this Pickle.
195 // Methods for adding to the payload of the Pickle. These values are
196 // appended to the end of the Pickle's payload. When reading values from a
197 // Pickle, it is important to read them in the order in which they were added
198 // to the Pickle.
240 // Pickle. This saves a copy in cases where the data is not already
246 // on this Pickle.
250 // with BeginWriteData), the Pickle can
267 // to the Pickle constructor.
279 // The payload is the pickle data immediately following the header.
325 // if the entire Pickle is not found in the given data range.