MCPcopy Create free account
hub / github.com/ParaN3xus/udon-decompiler / AlignValue

Method AlignValue

tools/UdonProgramDumper/BundleDecryption.cs:460–469  ·  view source on GitHub ↗
(long value, int alignment)

Source from the content-addressed store, hash-verified

458 }
459
460 private static long AlignValue(long value, int alignment)
461 {
462 if (alignment <= 1)
463 {
464 return value;
465 }
466
467 var remainder = value % alignment;
468 return remainder == 0 ? value : value + alignment - remainder;
469 }
470
471 private static string ResolveDecryptOutputPath(string inputPath,
472 string? configuredOutputPath)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected