1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 17:27:23 -04:00
OpenDiablo2/d2common/d2interface/bitmuncher.go
dk 691368cba7
Decouple bitmuncher (#495)
* adding comments to d2interface for linter

* moved d2render renderer interfaces and types into d2interface

* fixed most lint errors for monstats loader

* decouple bitmuncher to interface
2020-06-29 20:21:09 -04:00

19 lines
364 B
Go

package d2interface
type BitMuncher interface {
Init(data []byte, offset int) BitMuncher
Copy() BitMuncher
Offset() int
SetOffset(int)
BitsRead() int
SetBitsRead(int)
GetBit() uint32
SkipBits(bits int)
GetByte() byte
GetInt32() int32
GetUInt32() uint32
GetBits(bits int) uint32
GetSignedBits(bits int) int
MakeSigned(value uint32, bits int) int32
}