/// <summary> /// Write the Name values from the <c>MLArray</c> to the <c>BinaryWriter</c> stream. /// </summary> /// <param name="bw"><c>BinaryWriter</c> stream</param> /// <param name="array"><c>MLArray</c> matrix</param> private void WriteName( BinaryWriter bw, MLArray array ) { //MemoryStream buffer = new MemoryStream(); //BinaryWriter bufferBW = new BinaryWriter( buffer ); byte[] nameByteArray = array.GetNameToByteArray(); //bufferBW.Write( nameByteArray ); OSArrayTag tag = new OSArrayTag( MatDataTypes.miINT8, nameByteArray/*buffer.ToArray()*/ ); tag.WriteTo( bw ); }