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
64 // Read Type from Pickle.
85 const char* payload_; // Start of our pickle's payload.
94 // The Pickle class supports appending primitive values (ints, strings, etc.)
95 // to a pickle instance. The Pickle instance grows its internal memory buffer
97 // buffer is exposed as the "data" of the Pickle. This "data" can be passed
98 // to a Pickle object to initialize it for reading.
100 // When reading from a Pickle object, it is important for the consumer to know
101 // what value types to read and in what order to read them as the Pickle does
104 // The Pickle's data has a header which contains the size of the Pickle's
106 // space is controlled by the header_size parameter passed to the Pickle
109 class BASE_EXPORT Pickle {
111 // Initialize a Pickle object using the default header size.
112 Pickle();
114 // Initialize a Pickle object with the specified header size in bytes, which
115 // must be greater-than-or-equal-to sizeof(Pickle::Header). The header size
117 explicit Pickle(int header_size);
119 // Initializes a Pickle from a const block of data. The data is not copied;
120 // instead the data is merely referenced by this Pickle. Only const methods
121 // should be used on the Pickle when initialized this way. The header
123 Pickle(const char* data, int data_len);
125 // Initializes a Pickle as a deep copy of another Pickle.
126 Pickle(const Pickle& other);
133 virtual ~Pickle();
136 Pickle& operator=(const Pickle& other);
138 // Returns the size of the Pickle's data.
141 // Returns the data for this Pickle.
221 // Methods for adding to the payload of the Pickle. These values are
222 // appended to the end of the Pickle's payload. When reading values from a
223 // Pickle, it is important to read them in the order in which they were added
224 // to the Pickle.
280 // to the Pickle constructor.
292 // The payload is the pickle data immediately following the header.
327 // if the entire Pickle is not found in the given data range.