Skip to content

Commit 1680e4e

Browse files
committed
add fullBuffer to parsePacketBuffer return
1 parent e0e1c91 commit 1680e4e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/compiler.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class CompiledProtodef {
104104
return {
105105
data: value,
106106
metadata: { size },
107-
buffer: buffer.slice(0, size)
107+
buffer: buffer.slice(0, size),
108+
fullBuffer: buffer
108109
}
109110
}
110111
}

src/protodef.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ class ProtoDef {
156156
metadata: {
157157
size: size
158158
},
159-
buffer: buffer.slice(0, size)
159+
buffer: buffer.slice(0, size),
160+
fullBuffer: buffer
160161
}
161162
}
162163
}

0 commit comments

Comments
 (0)