V
valentin tihomirov
The conversion shold be trivial -- no conversion copy. In essense, both
types are pointers to byte array. The difference is purely semantical.
unsafe {
byte b = 1;
byte[] data = &b;
}
Actually, I considered establishing data reference in a structure:
[StructLayout(LayoutKind.Sequential)]
struct Struct {
public UInt32 count;
public byte[] pData;
}
types are pointers to byte array. The difference is purely semantical.
unsafe {
byte b = 1;
byte[] data = &b;
}
Actually, I considered establishing data reference in a structure:
[StructLayout(LayoutKind.Sequential)]
struct Struct {
public UInt32 count;
public byte[] pData;
}