Searched refs:pad_size (Results 1 – 2 of 2) sorted by relevance
256 size_t pad_size = Align(s.size() + 1, 64) - s.size() - 1; in WriteStringWithLength() local257 if (pad_size > 0u) { in WriteStringWithLength()258 char align_buf[pad_size]; in WriteStringWithLength()259 memset(align_buf, '\0', pad_size); in WriteStringWithLength()260 if (!Write(align_buf, pad_size)) { in WriteStringWithLength()
69 static size_t pad_size(size_t s) { in pad_size() function567 const size_t padded = pad_size(len); in writeInplace()1112 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in read()1113 && len <= pad_size(len)) { in read()1115 mDataPos += pad_size(len); in read()1130 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in readInplace()1131 && len <= pad_size(len)) { in readInplace()1133 mDataPos += pad_size(len); in readInplace()1334 mDataPos += pad_size(len+1); in readCString()