Lines Matching refs:hdr
93 bool SerializedHandle::WriteHeader(const Header& hdr, Pickle* pickle) {
94 if (!pickle->WriteInt(hdr.type))
96 if (hdr.type == SHARED_MEMORY) {
97 if (!pickle->WriteUInt32(hdr.size))
100 if (hdr.type == FILE) {
101 if (!pickle->WriteInt(hdr.open_flags) || !pickle->WriteInt(hdr.file_io))
108 bool SerializedHandle::ReadHeader(PickleIterator* iter, Header* hdr) {
109 *hdr = Header(INVALID, 0, 0, 0);
119 hdr->size = size;
128 hdr->open_flags = open_flags;
129 hdr->file_io = file_io;
139 hdr->type = Type(type);