Documentation
¶
Index ¶
- Constants
- func Exec(in []int) ([]int, error)
- func Exec2(prg []int, inputs []int) (modin []int, output []int, err error)
- func ExecC(prg []int, inC chan int, outC chan int)
- type Computer
- type IntChannelReader
- type IntChannelWriter
- type IntReader
- type IntSliceReader
- type IntSliceWriter
- type IntWriter
- type NonBlockingIntChannelReader
- type NonBlockingIntChannelWriter
- type SignallingIntChannelReader
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Computer ¶
type Computer struct {
// contains filtered or unexported fields
}
func NewComputer ¶
type IntChannelReader ¶
type IntChannelReader struct {
C chan int
}
func NewIntChannelReader ¶
func NewIntChannelReader(buffer int) *IntChannelReader
func (*IntChannelReader) Close ¶
func (r *IntChannelReader) Close()
func (*IntChannelReader) Provide ¶
func (r *IntChannelReader) Provide(n int)
func (*IntChannelReader) Read ¶
func (r *IntChannelReader) Read() (int, error)
type IntChannelWriter ¶
type IntChannelWriter struct {
C chan int
}
func NewIntChannelWriter ¶
func NewIntChannelWriter(buffer int) *IntChannelWriter
func (*IntChannelWriter) Close ¶
func (r *IntChannelWriter) Close()
func (*IntChannelWriter) Get ¶
func (w *IntChannelWriter) Get() (int, bool)
func (*IntChannelWriter) Write ¶
func (w *IntChannelWriter) Write(v int) error
type IntSliceReader ¶
type IntSliceReader struct {
// contains filtered or unexported fields
}
func NewIntSliceReader ¶
func NewIntSliceReader(values []int) *IntSliceReader
func (*IntSliceReader) Read ¶
func (r *IntSliceReader) Read() (int, error)
type IntSliceWriter ¶
type IntSliceWriter struct {
// contains filtered or unexported fields
}
func NewIntSliceWriter ¶
func NewIntSliceWriter() *IntSliceWriter
func (*IntSliceWriter) Values ¶
func (w *IntSliceWriter) Values() []int
func (*IntSliceWriter) Write ¶
func (w *IntSliceWriter) Write(v int) error
type NonBlockingIntChannelReader ¶
func NewNonBlockingIntChannelReader ¶
func NewNonBlockingIntChannelReader(emptyValue int) *NonBlockingIntChannelReader
func (*NonBlockingIntChannelReader) Close ¶
func (r *NonBlockingIntChannelReader) Close()
func (*NonBlockingIntChannelReader) Provide ¶
func (r *NonBlockingIntChannelReader) Provide(ns ...int)
func (*NonBlockingIntChannelReader) Read ¶
func (r *NonBlockingIntChannelReader) Read() (int, error)
type NonBlockingIntChannelWriter ¶
func NewNonBlockingIntChannelWriter ¶
func NewNonBlockingIntChannelWriter() *NonBlockingIntChannelWriter
func (*NonBlockingIntChannelWriter) Read ¶
func (r *NonBlockingIntChannelWriter) Read(cnt int) ([]int, bool)
func (*NonBlockingIntChannelWriter) Write ¶
func (r *NonBlockingIntChannelWriter) Write(v int) error
type SignallingIntChannelReader ¶
func NewSignallingIntChannelReader ¶
func NewSignallingIntChannelReader(buffer int) *SignallingIntChannelReader
func (*SignallingIntChannelReader) Close ¶
func (r *SignallingIntChannelReader) Close()
func (*SignallingIntChannelReader) Provide ¶
func (r *SignallingIntChannelReader) Provide(n int)
func (*SignallingIntChannelReader) Read ¶
func (r *SignallingIntChannelReader) Read() (int, error)
Click to show internal directories.
Click to hide internal directories.