File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -495,9 +495,8 @@ public override void WriteDecimal128(Decimal128 value)
495495 public override void WriteDouble ( double value )
496496 {
497497 ThrowIfDisposed ( ) ;
498- var bytes = new byte [ 8 ] ;
499- BinaryPrimitivesCompat . WriteDoubleLittleEndian ( bytes , value ) ;
500- _stream . Write ( bytes , 0 , 8 ) ;
498+ BinaryPrimitivesCompat . WriteDoubleLittleEndian ( _temp , value ) ;
499+ _stream . Write ( _temp , 0 , 8 ) ;
501500 }
502501
503502 /// <inheritdoc/>
@@ -515,9 +514,8 @@ public override void WriteInt32(int value)
515514 public override void WriteInt64 ( long value )
516515 {
517516 ThrowIfDisposed ( ) ;
518- var bytes = new byte [ 8 ] ;
519- BinaryPrimitives . WriteInt64LittleEndian ( bytes , value ) ;
520- _stream . Write ( bytes , 0 , 8 ) ;
517+ BinaryPrimitives . WriteInt64LittleEndian ( _temp , value ) ;
518+ _stream . Write ( _temp , 0 , 8 ) ;
521519 }
522520
523521 /// <inheritdoc/>
You can’t perform that action at this time.
0 commit comments