Documentation
¶
Index ¶
- Variables
- func DecodeRK(encoded uint32) float64
- func ReadBIFF8String(data []byte, pos int) (string, int, error)
- func ReadBIFF8StringBoundary(data []byte, pos int, boundaries []int) (string, int, error)
- func ReadBIFF8StringBoundaryWPS(data []byte, pos int, boundaries []int) (string, int, error)
- func ReadShortString(data []byte, pos int, unicode bool) (string, int, error)
- type Reader
- func (r *Reader) Bytes(n int) ([]byte, error)
- func (r *Reader) Err() error
- func (r *Reader) Next() (*Record, error)
- func (r *Reader) NextSkipContinue() (*Record, error)
- func (r *Reader) Pos() int
- func (r *Reader) Reset(data []byte)
- func (r *Reader) Seek(pos int)
- func (r *Reader) U8() (byte, error)
- func (r *Reader) U16() (uint16, error)
- func (r *Reader) U32() (uint32, error)
- func (r *Reader) U64() (uint64, error)
- type Record
- type RecordType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTruncated = errors.New("biff: truncated record")
Functions ¶
func ReadBIFF8String ¶
ReadBIFF8String reads a BIFF8 Unicode string from data starting at pos. Returns the string and new position. Standard BIFF8 flag interpretation.
func ReadBIFF8StringBoundary ¶
ReadBIFF8StringBoundary reads a BIFF8 Unicode string with CONTINUE boundary awareness. boundaries must be sorted in ascending order, or nil. Each CONTINUE boundary redeclares the compression flag (1 byte).
func ReadBIFF8StringBoundaryWPS ¶ added in v0.2.1
ReadBIFF8StringBoundaryWPS reads a BIFF8 Unicode string with WPS-compatible flag interpretation. Same boundary awareness as ReadBIFF8StringBoundary.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) NextSkipContinue ¶
NextSkipContinue returns next non-CONTINUE record, merging CONTINUE data.
type Record ¶
type Record struct {
Type RecordType
Data []byte
}
type RecordType ¶
type RecordType uint16
const ( BOF RecordType = 0x0809 EOF RecordType = 0x000A CONTINUE RecordType = 0x003C DATEMODE RecordType = 0x0022 BOUNDSHEET RecordType = 0x0085 SST RecordType = 0x00FC LABELSST RecordType = 0x00FD NUMBER RecordType = 0x0203 RK RecordType = 0x027E MULRK RecordType = 0x00BD BOOLERR RecordType = 0x0205 FORMULA RecordType = 0x0006 STRING RecordType = 0x0207 DIMENSION RecordType = 0x0200 ROW RecordType = 0x0208 XF RecordType = 0x00E0 FONT RecordType = 0x0031 FORMAT RecordType = 0x041E LABEL RecordType = 0x0204 LABELRKY RecordType = 0x00D6 INDEX RecordType = 0x020B DBCELL RecordType = 0x00D7 MERGECELLS RecordType = 0x00E5 )
func (RecordType) String ¶
func (t RecordType) String() string
Click to show internal directories.
Click to hide internal directories.