feature: JPK encryption and databased events

This commit is contained in:
Matthe815
2023-07-03 02:50:38 -04:00
parent 76a3d73102
commit a065643783
4 changed files with 285 additions and 13 deletions

View File

@@ -138,6 +138,10 @@ func (b *ByteFrame) DataFromCurrent() []byte {
return b.buf[b.index:b.usedSize]
}
func (b *ByteFrame) Index() uint {
return b.index
}
// SetLE sets the byte order to litte endian.
func (b *ByteFrame) SetLE() {
b.byteOrder = binary.LittleEndian