StreamContainer.Write

Write(byte[])

将所有指定的字节写入流。

public virtual void Write(byte[] bytes)
参数类型描述
bytesByte[]要写入的字节。

另请参见


Write(byte[], int, int)

将一系列字节写入当前流,并将此流中的当前位置前移写入的字节数。

public virtual void Write(byte[] buffer, int offset, int count)
参数类型描述
bufferByte[]字节数组。此方法将 count 字节从 buffer 复制到当前流。
偏移Int32buffer 中的基于零的字节偏移量,从该位置开始将字节复制到当前流。
countInt32要写入当前流的字节数。

另请参见