Help us shape the future of Go! Take the 2026 Go Developer Survey

riff

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2013 License: ISC Imports: 6 Imported by: 15

README

go-riff Build Status

A Go library to read/write RIFF format

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	ChunkID   []byte
	ChunkSize uint32
	RIFFReader
}

type RIFFChunk

type RIFFChunk struct {
	FileSize uint32
	FileType []byte
	Chunks   []*Chunk
}

type RIFFReader

type RIFFReader interface {
	io.Reader
	io.ReaderAt
}

type Reader

type Reader struct {
	RIFFReader
}

func NewReader

func NewReader(r RIFFReader) *Reader

func (*Reader) Read

func (r *Reader) Read() (chunk *RIFFChunk, err error)

type Writer

type Writer struct {
	io.Writer
}

func NewWriter

func NewWriter(w io.Writer, fileType []byte, fileSize uint32) *Writer

func (*Writer) WriteChunk

func (w *Writer) WriteChunk(chunkID []byte, chunkSize uint32, cb writeCallback) (err error)

Jump to

Keyboard shortcuts

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