/// <inheritdoc /> public virtual ErrorCode GetAttrib(Attrib attrib, ref byte[] buffer) { switch (attrib) { case Attrib.AtrString: buffer = _fakeCard.GetAtr(); break; case Attrib.DeviceFriendlyName: buffer = Encoding.Default.GetBytes(ReaderName); break; default: buffer = Array.Empty <byte>(); break; } return(ErrorCode.Success); }
/// <inheritdoc /> public byte[] GetAtr() { return(_fakeCard.GetAtr().Clone() as byte[]); }