mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 19:57:27 +08:00
18 lines
331 B
C#
18 lines
331 B
C#
|
using System;
|
|||
|
using System.Linq;
|
|||
|
|
|||
|
namespace BililiveRecorder.FlvProcessor
|
|||
|
{
|
|||
|
internal static class Utils
|
|||
|
{
|
|||
|
internal static byte[] ToBE(this byte[] b)
|
|||
|
{
|
|||
|
if (BitConverter.IsLittleEndian)
|
|||
|
return b.Reverse().ToArray();
|
|||
|
else
|
|||
|
return b;
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|