2018-09-06 02:02:48 +02:00
|
|
|
|
/*
|
2019-01-01 12:10:41 +01:00
|
|
|
|
Copyright (C) 2018-2019 de4dot@gmail.com
|
2018-09-06 02:02:48 +02:00
|
|
|
|
|
|
|
|
|
This file is part of Iced.
|
|
|
|
|
|
|
|
|
|
Iced is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
Iced is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
along with Iced. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if !NO_ENCODER
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Iced.Intel;
|
|
|
|
|
|
|
|
|
|
namespace Iced.UnitTests.Intel.EncoderTests {
|
|
|
|
|
sealed class CodeWriterImpl : CodeWriter {
|
|
|
|
|
readonly List<byte> bytes = new List<byte>();
|
|
|
|
|
public override void WriteByte(byte value) => bytes.Add(value);
|
|
|
|
|
public byte[] ToArray() => bytes.ToArray();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|