public static TrinityErrorCode AddCell(this IKeyValueStore storage, long cell_id, byte[] cellBytes, int startIndex, int length, ushort cellType) { fixed(byte *p = cellBytes) { return(storage.AddCell(cell_id, p + startIndex, length, cellType)); } }
public static TrinityErrorCode AddCell(this IKeyValueStore storage, long cell_id, byte[] cellBytes) { fixed(byte *p = cellBytes) { return(storage.AddCell(cell_id, p, cellBytes.Length, StorageConfig.c_UndefinedCellType)); } }