1 Star 0 Fork 0

coodder / unipdf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
interface.go 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
jhonm 提交于 2023-08-07 15:31 . init
package writer
import "io"
// BitWriter is the interface that allows to write single bits.
type BitWriter interface {
// WriteBit writes the 'bit' - {0,1} value to the writer.
WriteBit(bit int) error
// WriteBits writes 'number' of 'bits'.
WriteBits(bits uint64, number int) (n int, err error)
// FinishByte sets the bitIndex to the end of given byte. This resets the bitIndex to 0
// and the byte index to the next byte.
FinishByte()
// SkipBits skips the 'skip' number of bits in the writer - changes the index position of the bit and byte.
// The value -1 sets the bitIndex to the beginning of the byte.
SkipBits(skip int) error
}
// BinaryWriter is the interface that implements writer.BitWriter, io.Writer and io.ByteWriter.
type BinaryWriter interface {
BitWriter
io.Writer
io.ByteWriter
Data() []byte
}
Go
1
https://gitee.com/coodder/unipdf.git
git@gitee.com:coodder/unipdf.git
coodder
unipdf
unipdf
v1.2.0

搜索帮助