riff

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: ISC Imports: 6 Imported by: 16 modules, 15 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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