MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / align

Method align

src/remote/protocol.cpp:2401–2412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2399 }
2400
2401 bool align(ULONG alignment)
2402 {
2403 ULONG a = IPTR(streamPtr) % alignment;
2404 if (a)
2405 {
2406 a = alignment - a;
2407 move2(a);
2408 if (blobSize)
2409 blobSize -= a;
2410 }
2411 return a;
2412 }
2413
2414private:
2415 void move2(ULONG step)

Callers 1

xdr_blob_streamFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected