mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-17 18:06:03 -05:00
d2common/d2datautils/StreamWriter: add Offset method
This commit is contained in:
parent
1224a38796
commit
30c56d274c
@ -26,6 +26,11 @@ func (v *StreamWriter) GetBytes() []byte {
|
|||||||
return v.data.Bytes()
|
return v.data.Bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Offset returns current bit offset
|
||||||
|
func (v *StreamWriter) Offset() int {
|
||||||
|
return v.bitOffset
|
||||||
|
}
|
||||||
|
|
||||||
// PushBytes writes a bytes to the stream
|
// PushBytes writes a bytes to the stream
|
||||||
func (v *StreamWriter) PushBytes(b ...byte) {
|
func (v *StreamWriter) PushBytes(b ...byte) {
|
||||||
for _, i := range b {
|
for _, i := range b {
|
||||||
|
Loading…
Reference in New Issue
Block a user