public MAPWriter(Stream stream, MAPFormat format) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } Format = format; if (Format == MAPFormat.ABSE) { GetCellValue = GetABSEBodyCellValue; } else { GetCellValue = GetABTABodyCellValue; } //Don't call Dispode of this Writer for stream to stay opened _binWriter = new BigEndianBinaryWriter(stream); }
public MAPReader(MapBuilder builder, MAPFormat format) { MapBuilder = builder; Format = format; }