SafeBuffer.Read<T>(UInt64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Reads a value type from memory at the specified offset.
public:
generic <typename T>
where T : value class T Read(System::UInt64 byteOffset);
[System.CLSCompliant(false)]
public T Read<T> (ulong byteOffset) where T : struct;
[<System.CLSCompliant(false)>]
member this.Read : uint64 -> 'T (requires 'T : struct)
Public Function Read(Of T As Structure) (byteOffset As ULong) As T
Type Parameters
- T
The value type to read.
Parameters
- byteOffset
- UInt64
The location from which to read the value type. You may have to consider alignment issues.
Returns
T
The value type that was read from memory.
- Attributes
Exceptions
The Initialize method has not been called.
Applies to
See also
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.