Move declaration closer to usage.

This commit is contained in:
2022-11-13 19:16:14 +00:00
parent bc362e5d4a
commit 98d7ac3349
18 changed files with 64 additions and 65 deletions

View File

@@ -85,8 +85,7 @@ partial class Dump
double currentSpeed = 0;
double maxSpeed = double.MinValue;
double minSpeed = double.MaxValue;
byte[] readBuffer;
Modes.DecodedMode? decMode = null;
Modes.DecodedMode? decMode = null;
bool ret;
ExtentsULong blankExtents = null;
var outputFormat = _outputPlugin as IWritableImage;
@@ -376,6 +375,8 @@ partial class Dump
{
if(outputFormat is IWritableOpticalImage opticalPlugin)
{
byte[] readBuffer;
sense = _dev.ReadDiscInformation(out readBuffer, out _, MmcDiscInformationDataTypes.DiscInformation,
_dev.Timeout, out _);