Home | History | Annotate | Download | only in base

Lines Matching defs:Pickle

5 #include "base/pickle.h"
15 const int Pickle::kPayloadUnit = 64;
17 // We mark a read only pickle with a special capacity_.
22 Pickle::Pickle()
31 Pickle::Pickle(int header_size)
42 Pickle::Pickle(const char* data, int data_len)
61 Pickle::Pickle(const Pickle& other)
72 Pickle::~Pickle() {
77 Pickle& Pickle::operator=(const Pickle& other) {
99 bool Pickle::ReadBool(void** iter, bool* result) const {
110 bool Pickle::ReadInt(void** iter, int* result) const {
118 // TODO(jar): http://crbug.com/13108 Pickle should be cleaned up, and not
127 bool Pickle::ReadLong(void** iter, long* result) const {
135 // TODO(jar): http://crbug.com/13108 Pickle should be cleaned up, and not
143 bool Pickle::ReadSize(void** iter, size_t* result) const {
151 // TODO(jar): http://crbug.com/13108 Pickle should be cleaned up, and not
160 bool Pickle::ReadUInt16(void** iter, uint16* result) const {
174 bool Pickle::ReadUInt32(void** iter, uint32* result) const {
188 bool Pickle::ReadInt64(void** iter, int64* result) const {
202 bool Pickle::ReadUInt64(void** iter, uint64* result) const {
216 bool Pickle::ReadString(void** iter, std::string* result) const {
232 bool Pickle::ReadWString(void** iter, std::wstring* result) const {
251 bool Pickle::ReadString16(void** iter, string16* result) const {
267 bool Pickle::ReadData(void** iter, const char** data, int* length) const {
280 bool Pickle::ReadBytes(void** iter, const char** data, int length) const {
296 bool Pickle::ReadLength(void** iter, int* result) const {
302 bool Pickle::WriteString(const std::string& value) {
309 bool Pickle::WriteWString(const std::wstring& value) {
317 bool Pickle::WriteString16(const string16& value) {
325 bool Pickle::WriteData(const char* data, int length) {
329 bool Pickle::WriteBytes(const void* data, int data_len) {
330 DCHECK(capacity_ != kCapacityReadOnly) << "oops: pickle is readonly";
342 char* Pickle::BeginWriteData(int length) {
344 "There can only be one variable buffer in a Pickle";
362 void Pickle::TrimWriteData(int new_length) {
379 char* Pickle::BeginWrite(size_t length) {
396 void Pickle::EndWrite(char* dest, int length) {
403 bool Pickle::Resize(size_t new_capacity) {
417 const char* Pickle::FindNext(size_t header_size,