MCPcopy Create free account
hub / github.com/apache/cloudberry / tarPaddingBytesRequired

Function tarPaddingBytesRequired

src/include/pgtar.h:43–47  ·  view source on GitHub ↗

* Compute the number of padding bytes required for an entry in a tar * archive. We must pad out to a multiple of TAR_BLOCK_SIZE. Since that's * a power of 2, we can use TYPEALIGN(). */

Source from the content-addressed store, hash-verified

41 * a power of 2, we can use TYPEALIGN().
42 */
43static inline size_t
44tarPaddingBytesRequired(size_t len)
45{
46 return TYPEALIGN(TAR_BLOCK_SIZE, len) - len;
47}
48
49#endif
50

Callers 9

sendFileWithContentFunction · 0.85
ifFunction · 0.85
sendFileFunction · 0.85
_tarAddFileFunction · 0.85
_tarPositionToFunction · 0.85
tar_closeFunction · 0.85
ReceiveTarFileFunction · 0.85
ReceiveTarCopyChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected