Skip to main content
Module

std/io/mod.ts

Deno standard library
Go to Latest
Deprecated

(will be removed after 1.0.0) Use the [Web Streams API]https://developer.mozilla.org/en-US/docs/Web/API/Streams_API instead.

import * as mod from "https://deno.land/std@0.209.0/io/mod.ts";

Classes

c
Buffer
deprecated

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

c
BufferFullError
deprecated
c
BufReader
deprecated
c
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
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
LimitedReader
deprecated
c
MultiReader
deprecated

Reader utility for combining multiple readers

c
PartialReadError
deprecated
c
StringReader
deprecated

Reader utility for strings.

c
StringWriter
deprecated

Writer utility for buffering string chunks.

Functions

f
copyN
deprecated

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

f
readDelim
deprecated

Read delimited bytes from a Reader.

f
readInt
deprecated

Read big endian 32bit integer from BufReader

f
readLines
deprecated

Read strings line-by-line from a Reader.

f
readLong
deprecated

Read big endian 64bit long from BufReader

f
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
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
readShort
deprecated

Read big endian 16bit short from BufReader

f
readStringDelim
deprecated

Read Reader chunk by chunk, splitting based on delimiter.

f
sliceLongToBytes
deprecated

Slice number into 64bit big endian byte array

Interfaces

I
ByteRange
deprecated
I
ReadLineResult
deprecated

Result type returned by of BufReader.readLine().