...

Package slicereader

import "internal/coverage/slicereader"
Overview
Index

Overview ▾

type Reader

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

func NewReader

func NewReader(b []byte, readonly bool) *Reader

func (*Reader) Offset

func (r *Reader) Offset() int64

func (*Reader) Read

func (r *Reader) Read(b []byte) (int, error)

func (*Reader) ReadString

func (r *Reader) ReadString(len int64) string

func (*Reader) ReadULEB128

func (r *Reader) ReadULEB128() (value uint64)

func (*Reader) ReadUint32

func (r *Reader) ReadUint32() uint32

func (*Reader) ReadUint64

func (r *Reader) ReadUint64() uint64

func (*Reader) ReadUint8

func (r *Reader) ReadUint8() uint8

func (*Reader) Seek

func (r *Reader) Seek(offset int64, whence int) (ret int64, err error)