Skip to content

Commit a0d8202

Browse files
committed
Testing Wasm
1 parent a95d5ed commit a0d8202

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

swift/Sources/FlexBuffers/Writer/FlexBuffersWriter.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,16 +762,30 @@ public struct FlexBuffersWriter {
762762

763763
let vloc = _bb.writerIndex
764764

765+
_bb.withUnsafeSlicedBytes {
766+
print(Array($0))
767+
}
768+
765769
for i in stride(from: start, to: stack.count, by: step) {
770+
print("### stack[i]", stack[i])
766771
write(value: stack[i], byteWidth: byteWidth)
767772
}
768773

774+
_bb.withUnsafeSlicedBytes {
775+
print(Array($0))
776+
}
777+
769778
if !typed {
770779
for i in stride(from: start, to: stack.count, by: step) {
780+
print("### storedPackedType", stack[i].storedPackedType(width: bitWidth))
771781
_bb.write(stack[i].storedPackedType(width: bitWidth), len: 1)
772782
}
773783
}
774784

785+
_bb.withUnsafeSlicedBytes {
786+
print(Array($0))
787+
}
788+
775789
let type: FlexBufferType =
776790
if keys != nil {
777791
.map

0 commit comments

Comments
 (0)