mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
15 lines
299 B
C#
15 lines
299 B
C#
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);
|
|
}
|
|
}
|
|
}
|