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)
495
495
public override void WriteDouble ( double value )
496
496
{
497
497
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 ) ;
501
500
}
502
501
503
502
/// <inheritdoc/>
@@ -515,9 +514,8 @@ public override void WriteInt32(int value)
515
514
public override void WriteInt64 ( long value )
516
515
{
517
516
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 ) ;
521
519
}
522
520
523
521
/// <inheritdoc/>
You can’t perform that action at this time.
0 commit comments