BigInteger.GetByteCount(Boolean) 方法
定义
获取将由 ToByteArray(Boolean, Boolean) 和 TryWriteBytes(Span<Byte>, Int32, Boolean, Boolean) 输出的字节数。Gets the number of bytes that will be output by ToByteArray(Boolean, Boolean) and TryWriteBytes(Span<Byte>, Int32, Boolean, Boolean).
public int GetByteCount (bool isUnsigned = false);
member this.GetByteCount : bool -> int
Public Function GetByteCount (Optional isUnsigned As Boolean = false) As Integer
参数
- isUnsigned
- Boolean
如果使用无符号编码,则为 true
;否则为 false
。true
to use unsigned encoding; otherwise, false
.
返回
字节数。The number of bytes.