Home | History | Annotate | Download | only in base

Lines Matching defs:Pickle

19 // The Pickle class supports appending primitive values (ints, strings, etc.)
20 // to a pickle instance. The Pickle instance grows its internal memory buffer
22 // buffer is exposed as the "data" of the Pickle. This "data" can be passed
23 // to a Pickle object to initialize it for reading.
25 // When reading from a Pickle object, it is important for the consumer to know
26 // what value types to read and in what order to read them as the Pickle does
29 // The Pickle's data has a header which contains the size of the Pickle's
31 // space is controlled by the header_size parameter passed to the Pickle
34 class BASE_API Pickle {
36 // Initialize a Pickle object using the default header size.
37 Pickle();
39 // Initialize a Pickle object with the specified header size in bytes, which
40 // must be greater-than-or-equal-to sizeof(Pickle::Header). The header size
42 explicit Pickle(int header_size);
44 // Initializes a Pickle from a const block of data. The data is not copied;
45 // instead the data is merely referenced by this Pickle. Only const methods
46 // should be used on the Pickle when initialized this way. The header
48 Pickle(const char* data, int data_len);
50 // Initializes a Pickle as a deep copy of another Pickle.
51 Pickle(const Pickle& other);
53 virtual ~Pickle();
56 Pickle& operator=(const Pickle& other);
58 // Returns the size of the Pickle's data.
61 // Returns the data for this Pickle.
64 // Methods for reading the payload of the Pickle. To read from the start of
65 // the Pickle, initialize *iter to NULL. If successful, these methods return
86 // Methods for adding to the payload of the Pickle. These values are
87 // appended to the end of the Pickle's payload. When reading values from a
88 // Pickle, it is important to read them in the order in which they were added
89 // to the Pickle.
121 // Pickle. This saves a copy in cases where the data is not already
127 // on this Pickle.
131 // with BeginWriteData), the Pickle can
148 // to the Pickle constructor.
226 // if the entire Pickle is not found in the given data range.