Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/s3si/deps.ts>io

Export your battles from SplatNet to https://stat.ink
Go to Latest
namespace io
import { io } from "https://deno.land/x/s3si@gui-v0.4.16/deps.ts";

Utilities for working with Deno's readers, writers, and web streams.

Reader and Writer interfaces are deprecated in Deno, and so many of these utilities are also deprecated. Consider using web streams instead.

Classes

A variable-sized buffer of bytes with read() and write() methods.

c
io.BufReader
deprecated
c
io.BufWriter
deprecated

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer.

c
io.BufWriterSync
deprecated

BufWriterSync implements buffering for a deno.WriterSync object. If an error occurs writing to a WriterSync, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.WriterSync.

c
io.LimitedReader
deprecated
c
io.MultiReader
deprecated

Reader utility for combining multiple readers

c
io.StringReader
deprecated

Reader utility for strings.

c
io.StringWriter
deprecated

Writer utility for buffering string chunks.

Functions

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.

f
io.copyN
deprecated

Copy N size at the most. If read size is lesser than N, then returns nread

Read Reader r until EOF (null) and resolve to the content as Uint8Array.

Synchronously reads ReaderSync r until EOF (null) and returns the content as Uint8Array.

f
io.readDelim
deprecated

Read delimited bytes from a Reader.

f
io.readInt
deprecated

Read big endian 32bit integer from BufReader

f
io.readLines
deprecated

Read strings line-by-line from a Reader.

f
io.readLong
deprecated

Read big endian 64bit long from BufReader

f
io.readRange
deprecated

Read a range of bytes from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range.

f
io.readRangeSync
deprecated

Read a range of bytes synchronously from a file or other resource that is readable and seekable. The range start and end are inclusive of the bytes within that range.

f
io.readShort
deprecated

Read big endian 16bit short from BufReader

Read Reader chunk by chunk, splitting based on delimiter.

Slice number into 64bit big endian byte array

Create a ReadableStream of Uint8Arrays from a Reader.

Create a WritableStream from a Writer.

Write all the content of the array buffer (arr) to the writer (w).

Synchronously write all the content of the array buffer (arr) to the writer (w).

Interfaces

I
io.ByteRange
deprecated

An abstract interface which when implemented provides an interface to close files/resources that were previously opened.

An abstract interface which when implemented provides an interface to read bytes into an array buffer asynchronously.

An abstract interface which when implemented provides an interface to read bytes into an array buffer synchronously.

Result type returned by of BufReader.readLine().

Options for toReadableStream.

Options for toWritableStream.

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource asynchronously.

An abstract interface which when implemented provides an interface to write bytes from an array buffer to a file/resource synchronously.