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

Method AlignStream

tools/UdonProgramDumper/BundleDecryption.cs:451–458  ·  view source on GitHub ↗
(Stream stream, int alignment)

Source from the content-addressed store, hash-verified

449 }
450
451 private static void AlignStream(Stream stream, int alignment)
452 {
453 var aligned = AlignValue(stream.Position, alignment);
454 while (stream.Position < aligned)
455 {
456 stream.WriteByte(0);
457 }
458 }
459
460 private static long AlignValue(long value, int alignment)
461 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected