public override void SetUp()
 {
     _fieldNullBuffer = new byte[WireFormatting.GetFieldValueByteCount(null)];
     WireFormatting.WriteFieldValue(ref _fieldNullBuffer.Span.GetStart(), null);
     _fieldIntBuffer = new byte[WireFormatting.GetFieldValueByteCount(_intObject)];
     WireFormatting.WriteFieldValue(ref _fieldIntBuffer.Span.GetStart(), _intObject);
     _fieldStringBuffer = new byte[WireFormatting.GetFieldValueByteCount(_shortString)];
     WireFormatting.WriteFieldValue(ref _fieldStringBuffer.Span.GetStart(), _shortString);
     _fieldArrayBuffer = new byte[WireFormatting.GetFieldValueByteCount(_byteArray)];
     WireFormatting.WriteFieldValue(ref _fieldArrayBuffer.Span.GetStart(), _byteArray);
     _fieldDictBuffer = new byte[WireFormatting.GetFieldValueByteCount(_emptyDictionary)];
     WireFormatting.WriteFieldValue(ref _fieldDictBuffer.Span.GetStart(), _emptyDictionary);
     _fieldBinaryTableValueBuffer = new byte[WireFormatting.GetFieldValueByteCount(_binaryTableValue)];
     WireFormatting.WriteFieldValue(ref _fieldBinaryTableValueBuffer.Span.GetStart(), _binaryTableValue);
 }
 public int StringGetSize() => WireFormatting.GetFieldValueByteCount(_shortString);
 public int IntGetSize() => WireFormatting.GetFieldValueByteCount(_intObject);
 public int NullGetSize() => WireFormatting.GetFieldValueByteCount(null);
 public int LongstrGetSizePopulated() => WireFormatting.GetFieldValueByteCount(_longString);
 public int LongstrGetSizeEmpty() => WireFormatting.GetFieldValueByteCount(string.Empty);
 public int BinaryTableValueGetSize() => WireFormatting.GetFieldValueByteCount(_binaryTableValue);
 public int DictGetSize() => WireFormatting.GetFieldValueByteCount(_emptyDictionary);
 public int ArrayGetSize() => WireFormatting.GetFieldValueByteCount(_byteArray);