1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/Utilities/ByteHelper.cs

15 lines
299 B
C#
Raw Normal View History

using System;
using System.IO;
namespace Teknik.Utilities
{
public static class ByteHelper
{
public static void PadToMultipleOf(ref byte[] src, int pad)
{
int len = (src.Length + pad - 1) / pad * pad;
Array.Resize(ref src, len);
}
}
}