Convert byte array To UInt8 - CSharp System

CSharp examples for System:Byte Array

Description

Convert byte array To UInt8

Demo Code


using System.Text;
using System;/* w w  w.j a v a  2  s .co m*/

public class Main{
        public static byte[] ToUInt8(byte[] source, int sourceOffset, int size)
        {
            var bytes = new byte[size];
            Array.Copy(source, sourceOffset, bytes, 0, size);
            return bytes;
        }
}

Related Tutorials