Beispiel #1
0
        public void ReadWrite(ref HDFingerprint fingerPrint)
        {
#if HAS_SPAN
            Span <byte> bytes = stackalloc byte[4];
            fingerPrint.ToBytes(bytes);
#else
            var bytes = fingerPrint.ToBytes();
#endif
            ReadWrite(ref bytes);
            if (!this.Serializing)
            {
                fingerPrint = new HDFingerprint(bytes);
            }
        }