mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: time in manifest
This commit is contained in:
1 parent
5876bf35b4
commit
badeb588dd
2 files changed
+4
-1
No files matched your search
+2
-1
@@ -16,7 +16,8 @@ Header {
|
||||
}
|
||||
|
||||
Body {
|
||||
primary uint8 base;
|
||||
uint32 time;
|
||||
uint8 base;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ export class RtsmReadStream extends ReadStream {
|
||||
|
||||
body() {
|
||||
return {
|
||||
time: this.uint32(),
|
||||
base: this.uint8(),
|
||||
};
|
||||
}
|
||||
@@ -56,6 +57,7 @@ export class RtsmWriteStream extends WriteStream {
|
||||
}
|
||||
|
||||
body(base: number) {
|
||||
this.uint32(Math.round(Date.now() / 1000));
|
||||
this.uint8(base);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user