System::Net::Http::ByteArrayContent class

ByteArrayContent class

Represents HTTP content as a byte array. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class ByteArrayContent : public System::Net::Http::HttpContent

Methods

MethodDescription
ByteArrayContent(System::ArrayPtr<uint8_t>)RTTI information.
ByteArrayContent(System::ArrayPtr<uint8_t>, int32_t, int32_t)Constructs a new instance.
TryComputeLength(int64_t&) overrideTries to calculate the byte array length.

Fields

FieldDescription
static DefaultStringEncodingThe default encoding.
static MaxBufferSizeThe maximum number of bytes.

See Also