System.Memory.Data A lightweight abstraction for a payload of bytes that supports converting between string, stream, JSON, and bytes. Creates a instance by wrapping the provided byte array. The array to wrap. Creates a instance by serializing the provided object to JSON using . The object that will be serialized to JSON using . The options to use when serializing to JSON. The type to use when serializing the data. If not specified, will be used to determine the type. Creates a instance by wrapping the provided bytes. Byte data to wrap. Creates a instance from a string by converting the string to bytes using the UTF-8 encoding. The string data. Creates a instance by wrapping the provided . Byte data to wrap. A wrapper over . Creates a instance by wrapping the provided byte array. The array to wrap. A wrapper over . Creates a instance from a string by converting the string to bytes using the UTF-8 encoding. The string data. A value representing the UTF-8 encoding of . Creates a instance from the specified stream. The stream is not disposed by this method. Stream containing the data. A value representing all of the data remaining in . Creates a instance from the specified stream. The stream is not disposed by this method. Stream containing the data. A token that may be used to cancel the operation. A value representing all of the data remaining in . Creates a instance by serializing the provided object using the . The type to use when serializing the data. The data to use. The options to use when serializing to JSON. A value representing the UTF-8 encoding of the JSON representation of . Converts the value of this instance to a string using UTF-8. A string from the value of this instance, using UTF-8 to decode the bytes. Converts the to a read-only stream. A stream representing the data. Gets the value of this instance as bytes without any further interpretation. The value of this instance as bytes without any further interpretation. Converts the to a byte array. A byte array representing the data. Converts the to the specified type using . The type that the data should be converted to. The to use when serializing to JSON. The data converted to the specified type. Defines an implicit conversion from a to a . The value to be converted. Defines an implicit conversion from a to a . The value to be converted. Determines whether the specified object is equal to the current object. The object to compare with the current object. if the specified object is equal to the current object; otherwise, . Serves as the default hash function.A hash code for the current object. Provides a for the contents of a .