diff options
author | Jonathon Orsi <jonathon.orsi@gmail.com> | 2019-04-07 20:51:43 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-07 20:51:43 -0400 |
commit | 3452a10840ef47bb5546969ebe776289c7b095f1 (patch) | |
tree | 165439d870c7fdc2b914d9e008162ea7c17b4cb2 /js/stat.ts | |
parent | 86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff) |
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/stat.ts')
-rw-r--r-- | js/stat.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/stat.ts b/js/stat.ts index ed3e17d19..755753606 100644 --- a/js/stat.ts +++ b/js/stat.ts @@ -11,10 +11,7 @@ function req( ): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { const builder = flatbuffers.createBuilder(); const filename_ = builder.createString(filename); - msg.Stat.startStat(builder); - msg.Stat.addFilename(builder, filename_); - msg.Stat.addLstat(builder, lstat); - const inner = msg.Stat.endStat(builder); + const inner = msg.Stat.createStat(builder, filename_, lstat); return [builder, msg.Any.Stat, inner]; } |