feat: time in manifest

This commit is contained in:
TrèsAbhi committed 2024-04-16 09:42:48 -05:00
1 parent 5876bf35b4
commit badeb588dd
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -16,7 +16,8 @@ Header {
} }
Body { Body {
primary uint8 base; uint32 time;
uint8 base;
} }
``` ```
+2
View File
@@ -33,6 +33,7 @@ export class RtsmReadStream extends ReadStream {
body() { body() {
return { return {
time: this.uint32(),
base: this.uint8(), base: this.uint8(),
}; };
} }
@@ -56,6 +57,7 @@ export class RtsmWriteStream extends WriteStream {
} }
body(base: number) { body(base: number) {
this.uint32(Math.round(Date.now() / 1000));
this.uint8(base); this.uint8(base);
} }
} }