idx

package
v0.0.0-...-32ffa8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Uint8DataType   int8 = 0x08
	Int8DataType    int8 = 0x09
	Int16DataType   int8 = 0x0b
	Int32DataType   int8 = 0x0c
	Float32DataType int8 = 0x0d
	Float64DataType int8 = 0x0e
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Zeros         int16
	DataType      int8
	NumDimensions int8
}

type Reader

type Reader struct {
	// Idx header for read-convenience
	Header *Header

	Dimensions []int
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader) (rr *Reader, err error)

func (*Reader) Read

func (rr *Reader) Read(p []byte) (int, error)

func (*Reader) ReadFloat32

func (rr *Reader) ReadFloat32(p []float32) error

func (*Reader) ReadFloat64

func (rr *Reader) ReadFloat64(p []float64) error

func (*Reader) ReadInt16

func (rr *Reader) ReadInt16(p []int16) error

func (*Reader) ReadInt32

func (rr *Reader) ReadInt32(p []int32) error

func (*Reader) ReadInt8

func (rr *Reader) ReadInt8(p []int8) error

func (*Reader) ReadUint8

func (rr *Reader) ReadUint8(p []uint8) error

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer, dataType int8, dimensions []int32) (ww *Writer)

func (*Writer) Write

func (ww *Writer) Write(p []byte) (int, error)

func (*Writer) WriteFloat32

func (ww *Writer) WriteFloat32(p []float32) error

func (*Writer) WriteFloat64

func (ww *Writer) WriteFloat64(p []float64) error

func (*Writer) WriteInt16

func (ww *Writer) WriteInt16(p []int16) error

func (*Writer) WriteInt32

func (ww *Writer) WriteInt32(p []int32) error

func (*Writer) WriteInt8

func (ww *Writer) WriteInt8(p []int8) error

func (*Writer) WriteUint8

func (ww *Writer) WriteUint8(p []uint8) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL