Lines Matching refs:alignment
134 uint32_t alignment = 0; in StartEntry() local
137 alignment = 4; in StartEntry()
139 return StartAlignedEntryWithTime(path, flags, time_t(), alignment); in StartEntry()
142 int32_t ZipWriter::StartAlignedEntry(std::string_view path, size_t flags, uint32_t alignment) { in StartAlignedEntry() argument
143 return StartAlignedEntryWithTime(path, flags, time_t(), alignment); in StartAlignedEntry()
147 uint32_t alignment = 0; in StartEntryWithTime() local
150 alignment = 4; in StartEntryWithTime()
152 return StartAlignedEntryWithTime(path, flags, time, alignment); in StartEntryWithTime()
202 uint32_t alignment) { in StartAlignedEntryWithTime() argument
216 if (powerof2(alignment) == 0) { in StartAlignedEntryWithTime()
219 if (alignment > std::numeric_limits<uint16_t>::max()) { in StartAlignedEntryWithTime()
257 if (alignment != 0 && (offset & (alignment - 1))) { in StartAlignedEntryWithTime()
259 uint16_t padding = static_cast<uint16_t>(alignment - (offset % alignment)); in StartAlignedEntryWithTime()