This commit is contained in:
parent
f9f0a7924f
commit
6cfdf079fb
1 changed files with 4 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ let int64_size = 8
|
|||
module Time = struct
|
||||
module Absolute = struct
|
||||
type t = { timestamp_us: int64 }
|
||||
type tNbo = { abs_value_us__: int64 }
|
||||
type t_nbo = { abs_value_us__: int64 }
|
||||
|
||||
let size = int64_size
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ module Time = struct
|
|||
|
||||
module Relative = struct
|
||||
type t = { timestamp_us: int64 }
|
||||
type tNbo = { relValue_us__: int64 }
|
||||
type t_nbo = { rel_value_us__: int64 }
|
||||
|
||||
let size = int64_size
|
||||
|
||||
|
|
@ -44,8 +44,8 @@ module Time = struct
|
|||
|
||||
let nboBin =
|
||||
let open Bin in
|
||||
record (fun relValue_us__ -> { relValue_us__ })
|
||||
|+ field beint64 (fun t -> t.relValue_us__)
|
||||
record (fun rel_value_us__ -> { rel_value_us__ })
|
||||
|+ field beint64 (fun t -> t.rel_value_us__)
|
||||
|> sealr
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue