Write byte array to BinaryWriter - CSharp System.IO

CSharp examples for System.IO:BinaryWriter

Description

Write byte array to BinaryWriter

Demo Code


using System.IO;//from  w ww .  j  av a 2  s.  c  o  m
using System;

public class Main{
        public static void Write(BinaryWriter bw, byte[] b)
        {
            bw.Write((byte)b.Length);
            bw.Write(b);
        }
}

Related Tutorials