Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var ErrInvalidDirLocation = errors.New("found directory node in unexpected place") + var ErrMalformedFileFormat = errors.New("malformed data in file format") + var ErrUnrecognizedType = errors.New("unrecognized node type") + func BytesForMetadata(m *Metadata) ([]byte, error) + func DataSize(data []byte) (uint64, error) + func FilePBData(data []byte, totalsize uint64) []byte + func FolderPBData() []byte + func FromBytes(data []byte) (*pb.Data, error) + func UnwrapData(data []byte) ([]byte, error) + func WrapData(b []byte) []byte + type Metadata struct + MimeType string + Size uint64 + func MetadataFromBytes(b []byte) (*Metadata, error) + func (m *Metadata) Bytes() ([]byte, error) + type MultiBlock struct + Data []byte + func (mb *MultiBlock) AddBlockSize(s uint64) + func (mb *MultiBlock) FileSize() uint64 + func (mb *MultiBlock) GetBytes() ([]byte, error) + func (mb *MultiBlock) NumChildren() int