Back to Pocketbase

Interface Writer

static/jsvm/interfaces/io.Writer.html

latest928 B
Original Source

Interface Writer

Writer is the interface that wraps the basic Write method.

Write writes len(p) bytes from p to the underlying data stream. It returns the number of bytes written from p (0 <= n <= len(p)) and any error encountered that caused the write to stop early. Write must return a non-nil error if it returns n < len(p). Write must not modify the slice data, even temporarily.

Implementations must not retain p.

Hierarchy

  • Writer

Indexable

Index

Methods

write

Methods

write

  • write(p): number

Parameters

p: string | number[]

Returns number

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc