P
Pablo Gutierrez
I have a C# method that reads Binary data (BLOB type) from a database
and returns the data an array of bytes
(i.e byte[] outbyte = new byte[bufferSize]
.
The BLOB column is saved into the database by a C program (UNIX) as an
array of "struct point" where
struct point //C structure
{
int Time; //32 bits
float Value; //32 bits
};
How can I cast the byte array read in the C# method to an array of
Sample where
public struct Sample //C# structure
{
System.Int32 Time; //32 bits
System.Single Value; //32 bits
}
?
In C/C++ this is extremely simple using pointers, but which is the
best way of doing this in C#?
and returns the data an array of bytes
(i.e byte[] outbyte = new byte[bufferSize]

The BLOB column is saved into the database by a C program (UNIX) as an
array of "struct point" where
struct point //C structure
{
int Time; //32 bits
float Value; //32 bits
};
How can I cast the byte array read in the C# method to an array of
Sample where
public struct Sample //C# structure
{
System.Int32 Time; //32 bits
System.Single Value; //32 bits
}
?
In C/C++ this is extremely simple using pointers, but which is the
best way of doing this in C#?