UnmanagedMemoryAccessor.ReadDecimal(Int64) 方法
定义
从访问器读取一个小数值。Reads a decimal value from the accessor.
public:
System::Decimal ReadDecimal(long position);
public decimal ReadDecimal (long position);
member this.ReadDecimal : int64 -> decimal
Public Function ReadDecimal (position As Long) As Decimal
参数
- position
- Int64
访问器中起始读取位置的字节偏移量。The number of bytes into the accessor at which to begin reading.
返回
读取的值。The value that was read.
例外
position 后面没有足够的字节数可供读取值。There are not enough bytes after position to read a value.
- 或 --or- 要读取的小数无效。The decimal to read is invalid.
position 小于零或大于访问器的容量。position is less than zero or greater than the capacity of the accessor.
访问器不支持读取。The accessor does not support reading.
已释放访问器。The accessor has been disposed.