We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9cdbaf commit 0e42dc5Copy full SHA for 0e42dc5
1 file changed
Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed/XdrStream.cs
@@ -434,20 +434,17 @@ public short ReadInt16()
434
435
public int ReadInt32()
436
{
437
- Array.Clear(_smallBuffer, 0, 4);
438
ReadBytes(_smallBuffer, 4);
439
return IPAddress.HostToNetworkOrder(BitConverter.ToInt32(_smallBuffer, 0));
440
}
441
public async Task<int> ReadInt32Async()
442
443
444
await ReadBytesAsync(_smallBuffer, 4).ConfigureAwait(false);
445
446
447
448
public long ReadInt64()
449
450
- Array.Clear(_smallBuffer, 0, 8);
451
ReadBytes(_smallBuffer, 8);
452
return IPAddress.HostToNetworkOrder(BitConverter.ToInt64(_smallBuffer, 0));
453
0 commit comments