You can obtain a pointer to the array block in a
Example
| В | Copy Code |
|---|---|
// pointer_to_Byte_array.cpp
// compile with: /clr
using namespace System;
int main() {
Byte bArr[] = {1, 2, 3};
Byte* pbArr = &bArr[0];
array<Byte> ^ bArr2 = gcnew array<Byte>{1,2,3};
interior_ptr<Byte> pbArr2 = &bArr2[0];
} | |
Dhtml editor
Free javascript download