Read byte array from BinaryReader - CSharp System.IO

CSharp examples for System.IO:BinaryReader

Description

Read byte array from BinaryReader

Demo Code


using System.IO;//w ww  .jav  a2s .  c om
using System;

public class Main{
        public static byte[] Read(BinaryReader br)
        {
            byte len = br.ReadByte();
            return br.ReadBytes(len);
        }
}

Related Tutorials