Home | History | Annotate | Download | only in ipc

Lines Matching defs:header

36 // The header is just the number of bytes of the Frame protobuf message.
74 // A) Only a fragment of the header (the size of the frame). E.g.,
75 // 03 00 00 (the header is 4 bytes, one is missing).
77 // B) A header and a part of the frame. E.g.,
79 // [ header, size=5 ] [ Partial frame ]
81 // C) One or more complete header+frame. E.g.,
83 // [ header, size=5 ] [ Whole frame ] [ header, size=3 ] [ Whole frame ]
85 // D) Some complete header+frame(s) and a partial header or frame (C + A/B).
90 // empty (we drained all the complete frames) or starts with the header of the
96 break; // Case A, not enough data to read even the header.
98 // Read the header into |payload_size|.
111 // Case B. We got the header but not the whole frame.
122 // Case C. We got at least one header and whole frame.
136 // |buf_| starts with the header of the next unconsumed frame.
183 buf.insert(0, kHeaderSize, 0); // Reserve the space for the header.
189 char header[kHeaderSize];
190 memcpy(header, base::AssumeLittleEndian(&payload_size), kHeaderSize);
191 buf.replace(0, kHeaderSize, header, kHeaderSize);