Package ds/port/runtime represents the Scheme library (ds port runtime).
Droscheme - a Scheme implementation Copyright © 2012 Andrew Robbins, Daniel Connelly
This program is free software: it is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPLv3): <http://www.gnu.org/licenses/>.
doc.go ds_port_runtime.go error.go export.go file.go global.go import.go kind.go port.go
const ( PortTypeCodeByte = iota PortTypeCodeByteIn // binary intput port PortTypeCodeByteOut // binary output port PortTypeCodeByteInOut // binary port PortTypeCodeChar PortTypeCodeCharIn // textual input port PortTypeCodeCharOut // textual output port PortTypeCodeCharInOut // textual port PortTypeCodeAny PortTypeCodeAnyIn // nonstandard, <-chan Any PortTypeCodeAnyOut // nonstandard, chan<- Any PortTypeCodeAnyInOut // nonstandard, chan Any PortTypeCodeMax // maximum )
port type codes
type BytePort struct {
// contains filtered or unexported fields
}
func (o *BytePort) Close() error
func (o *BytePort) Closed() bool
func (o *BytePort) Equal(a Any) bool
func (o *BytePort) GetHash() uintptr
func (o *BytePort) GetPortType() int
func (o *BytePort) GetType() int
func (o *BytePort) Peek(n int) (b []byte, err error)
func (o *BytePort) PeekByte() (b byte, err error)
func (o *BytePort) PeekRune() (r rune, n int, err error)
func (o *BytePort) Read(p []byte) (n int, err error)
func (o *BytePort) ReadByte() (c byte, err error)
func (o *BytePort) ReadLine() (line []rune, err error)
func (o *BytePort) ReadRune() (r rune, size int, err error)
func (o *BytePort) ReadRunes(delim rune) (line []rune, err error)
func (o *BytePort) UnreadByte() error
func (o *BytePort) UnreadRune() error
type CharPort struct {
// contains filtered or unexported fields
}
func (o *CharPort) Close() error
func (o *CharPort) Closed() bool
func (o *CharPort) Equal(a Any) bool
func (o *CharPort) Flush() error
func (o *CharPort) GetHash() uintptr
func (o *CharPort) GetPortType() int
func (o *CharPort) GetType() int
func (o *CharPort) Peek(n int) (b []byte, err error)
func (o *CharPort) PeekByte() (b byte, err error)
func (o *CharPort) PeekRune() (r rune, size int, err error)
func (o *CharPort) Read(p []byte) (n int, err error)
func (o *CharPort) ReadByte() (c byte, err error)
func (o *CharPort) ReadLine() (line []rune, err error)
func (o *CharPort) ReadRune() (r rune, size int, err error)
func (o *CharPort) ReadRunes(delim rune) (line []rune, err error)
func (o *CharPort) ReadyByte() bool
func (o *CharPort) ReadyRune() bool
func (o *CharPort) UnreadByte() error
func (o *CharPort) UnreadRune() error
func (o *CharPort) Write(c []byte) (n int, err error)
func (o *CharPort) WriteRunes(r []rune) (n int, err error)
type FilePort struct {
*os.File
// contains filtered or unexported fields
}
func (o *FilePort) Closed() bool
func (o *FilePort) Equal(a Any) bool
func (o *FilePort) Flush() error
func (o *FilePort) GetHash() uintptr
func (o *FilePort) GetPortType() int
func (o *FilePort) GetType() int
func (o *FilePort) Peek(n int) (b []byte, err error)
func (o *FilePort) PeekByte() (b byte, err error)
func (o *FilePort) PeekRune() (r rune, size int, err error)
func (o *FilePort) ReadByte() (c byte, err error)
func (o *FilePort) ReadRune() (r rune, size int, err error)
func (o *FilePort) ReadRunes(delim rune) (line []rune, err error)
func (o *FilePort) ReadyByte() bool
func (o *FilePort) ReadyRune() bool
func (o *FilePort) String() string
func (o *FilePort) UnreadByte() (err error)
func (o *FilePort) UnreadRune() (err error)
func (o *FilePort) WriteRunes(r []rune) (n int, err error)