cfb

package
v0.0.0-...-3f84e14 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cfb implements the Microsoft Compound File Binary File Format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

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

Document represents a Compound File Binary Format document.

func Open

func Open(filename string) (*Document, error)

Open a Compound File Binary Format document.

func (*Document) List

func (d *Document) List() ([]string, error)

List the streams contained in the document.

func (*Document) Open

func (d *Document) Open(name string) (io.ReadSeeker, error)

Open the named stream contained in the document.

type SliceReader

type SliceReader struct {
	CSize  []int64
	Data   [][]byte
	Index  uint
	Offset uint
}

SliceReader wraps a list of slices as a io.ReadSeeker that can transparently merge them into a single coherent stream.

func (*SliceReader) Read

func (s *SliceReader) Read(b []byte) (int, error)

Read implements the io.Reader interface.

func (*SliceReader) Seek

func (s *SliceReader) Seek(offset int64, whence int) (int64, error)

Seek implements the io.Seeker interface.

Jump to

Keyboard shortcuts

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