Språk

PrintStream.WriteBytes(Byte[]) Method

Definition

Writes all bytes from the specified byte array to this stream.

[Android.Runtime.Register("writeBytes", "([B)V", "GetWriteBytes_arrayBHandler", ApiSince=34)]
public virtual void WriteBytes(byte[]? buf);
[<Android.Runtime.Register("writeBytes", "([B)V", "GetWriteBytes_arrayBHandler", ApiSince=34)>]
abstract member WriteBytes : byte[] -> unit
override this.WriteBytes : byte[] -> unit

Parameters

buf
Byte[]

A byte array

Attributes

Remarks

Writes all bytes from the specified byte array to this stream. If automatic flushing is enabled then the flush method will be invoked. The bytes are written as given; to encode characters using this stream's charset, use Print(Char[]) or Println(Char[]).

Java reference for java.io.PrintStream.writeBytes.

Applies to