Fix AlignToBoundary a bit

This commit is contained in:
Matt Nadareski
2025-07-24 10:56:31 -04:00
parent 411acd2d5a
commit 48ecdff5f7

View File

@@ -1417,8 +1417,8 @@ namespace SabreTools.Serialization
/// <param name="input">Input array to try aligning</param>
/// <param name="offset">Offset into the byte array</param>
/// <param name="alignment">Number of bytes to align on</param>
/// <returns>True if the stream could be aligned, false otherwise</returns>
public static bool AlignToBoundary(this byte[]? input, ref int offset, byte alignment)
/// <returns>True if the array could be aligned, false otherwise</returns>
private static bool AlignToBoundary(this byte[]? input, ref int offset, byte alignment)
{
// If the array is invalid
if (input == null || input.Length == 0)