Package ds_port

import "ds/port"
Overview
Index
Subdirectories

Overview

Package ds/port is for interfacing with Droscheme I/O.

Index

type BIPort
type BOPort
type BPort
type BytePeeker
type Closer
type Flusher
type IPort
type LineReader
type OPort
type Peeker
type Port
type RunePeeker
type RunesReader
type RunesWriter
type StringReader
type TIPort
type TOPort
type TPort

Package files

doc.go types.go

type BIPort

type BIPort interface {
    io.ByteReader
    io.Reader
    BytePeeker
    Peeker
}

type BOPort

type BOPort interface {
    io.Writer
}

type BPort

type BPort interface {
    BIPort
    BOPort
}

type BytePeeker

type BytePeeker interface {
    PeekByte() (c byte, err error)
    ReadyByte() bool
    UnreadByte() error
}

type Closer

type Closer interface {
    io.Closer
    Closed() bool
}

type Flusher

type Flusher interface {
    Flush() error
}

implemented by dsbufio.Writer

type IPort

type IPort interface {
    BIPort
    TIPort
}

type LineReader

type LineReader interface {
    ReadLine() (line []byte, isPrefix bool, err error)
}

type OPort

type OPort interface {
    BOPort
    TOPort
    Flusher
}

type Peeker

type Peeker interface {
    Peek(n int) (c []byte, err error)
}

implemented by dsbufio.Reader

type Port

type Port interface {
    Any
    GetPortType() int
    Closer
}

type RunePeeker

type RunePeeker interface {
    PeekRune() (r rune, size int, err error)
    ReadyRune() bool
    UnreadRune() error
}

type RunesReader

type RunesReader interface {
    ReadRunes(delim rune) (line []rune, err error)
}

type RunesWriter

type RunesWriter interface {
    WriteRunes(p []rune) (n int, err error)
}

similar to io.WriteString

type StringReader

type StringReader interface {
    ReadString(delim byte) (line string, err error)
}

type TIPort

type TIPort interface {
    io.RuneReader
    RunesReader
    RunePeeker
}

type TOPort

type TOPort interface {
    RunesWriter
}

type TPort

type TPort interface {
    TIPort
    TOPort
}

Subdirectories

Name      Synopsis
..
runtime      Package ds/port/runtime represents the Scheme library (ds port runtime).