有沒有辦法忽略的計算使用Marshal.SizeOf的結構尺寸的領域 例: public struct Message
{
public ushort X;
public ushort Y; // Ignore this field in the calculation
}
int size = Marshal.SizeOf(typeof(Message));
眼下
我想在F#中創建一個結構來表示海圖中的深度曲線。它必須包含一個座標列表和一個浮標,用來表示所代表的深度(例如「4.5米」)。我曾這樣說: type Coord =
struct
val X : float
val Y : float
new(x,y) = { X = x ; Y = y }
end
type DepthCurve =
抓取數據可以說我有這樣的結構: typedef struct nKey {
int num;
widget* widget;
} NUMBER_KEY;
和功能: void dialKey(widget* widget) {
// Need to print 'num' of the struct that this widget resides in
}