public bool TryReadRed4File(BinaryReader br, [NotNullWhen(true)] out CR2WFile?redFile) { // TODO: Shouldn't be done here... br.BaseStream.Seek(0, SeekOrigin.Begin); using var reader = new CR2WReader(br); return(reader.ReadFile(out redFile) == EFileReadErrorCodes.NoError); }
public bool TryReadRed4File(Stream stream, [NotNullWhen(true)] out CR2WFile?redFile) { // TODO: Shouldn't be done here... stream.Seek(0, SeekOrigin.Begin); using var reader = new CR2WReader(stream, Encoding.Default, true); return(reader.ReadFile(out redFile) == EFileReadErrorCodes.NoError); }