File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
swift/Sources/FlexBuffers/Writer Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments