mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-02 17:27:23 -04:00
691368cba7
* 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
19 lines
364 B
Go
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
|
|
}
|