TLSharp.Core.MTProto.Crypto.Pack.UInt32_To_LE C# (CSharp) Method

UInt32_To_LE() static private method

static private UInt32_To_LE ( uint n, byte bs ) : void
n uint
bs byte
return void
        internal static void UInt32_To_LE(uint n, byte[] bs)
        {
            bs[0] = (byte)(n);
            bs[1] = (byte)(n >> 8);
            bs[2] = (byte)(n >> 16);
            bs[3] = (byte)(n >> 24);
        }

Same methods

Pack::UInt32_To_LE ( uint n, byte bs, int off ) : void

Usage Example

Exemplo n.º 1
0
 private void PackBlock(
     byte[] bytes,
     int off)
 {
     Pack.UInt32_To_LE(C0, bytes, off);
     Pack.UInt32_To_LE(C1, bytes, off + 4);
     Pack.UInt32_To_LE(C2, bytes, off + 8);
     Pack.UInt32_To_LE(C3, bytes, off + 12);
 }