I have an object that implements the interface Windows::Storage::Streams::IBuffer, and I want to get an array of bytes out of it, however while looking at the d
Also check this method:
IBuffer -> Platform::Array
CryptographicBuffer.CopyToByteArray
Platform::Array -> IBuffer
CryptographicBuffer.CreateFromByteArray
As a side note, if you want to create Platform::Array from simple C++ array you could use Platform::ArrayReference, for example:
char* c = "sdsd";
Platform::ArrayReference arraywrapper((unsigned char*) c, sizeof(c));