public TrinityErrorCode AddCell(CellAccessOptions writeAheadLogOptions, long cellId, byte[] buff) { fixed(byte *p = buff) { return(CLocalMemoryStorage.CAddCell(cellId, p, buff.Length, ushort.MaxValue, writeAheadLogOptions)); } }
public TrinityErrorCode AddCell(CellAccessOptions writeAheadLogOptions, long cellId, byte[] buff, int offset, int cellSize, ushort cellType) { fixed(byte *p = buff) { return(CLocalMemoryStorage.CAddCell(cellId, p + offset, cellSize, cellType, writeAheadLogOptions)); } }
public override TrinityErrorCode AddCell(long cellId, byte[] buff, int offset, int cellSize, ushort cellType) { fixed(byte *p = buff) { TrinityErrorCode eResult = CLocalMemoryStorage.CAddCell(cellId, p + offset, cellSize, cellType); return(eResult); } }
public override TrinityErrorCode AddCell(long cellId, byte[] buff) { fixed(byte *p = buff) { TrinityErrorCode eResult = CLocalMemoryStorage.CAddCell(cellId, p, buff.Length, StorageConfig.c_UndefinedCellType); return(eResult); } }
public TrinityErrorCode AddCell(CellAccessOptions writeAheadLogOptions, long cellId, byte[] buff, int offset, int cellSize) { fixed(byte *p = buff) { TrinityErrorCode eResult = CLocalMemoryStorage.CAddCell(cellId, p + offset, cellSize, StorageConfig.c_UndefinedCellType, writeAheadLogOptions); return(eResult); } }
public override TrinityErrorCode AddCell(long cellId, byte *buff, int cellSize, ushort cellType) { #if _TWO_PHASE_CELL_MANIPULATION_ byte * cellPtr; int entryIndex; TrinityErrorCode eResult; if ((eResult = CGetLockedCellInfo4AddCell(cellId, cellSize, cellType, out cellPtr, out entryIndex)) == TrinityErrorCode.E_DUPLICATED_CELL) { return(eResult); } Memory.Copy(buff, offset, cellPtr, 0, cellSize); CReleaseCellLock(cellId, entryIndex); return(TrinityErrorCode.E_SUCCESS); #else return(CLocalMemoryStorage.CAddCell(cellId, buff, cellSize, cellType)); #endif }
public override TrinityErrorCode AddCell(long cellId, byte[] buff) { #if _TWO_PHASE_CELL_MANIPULATION_ byte * cellPtr; int entryIndex; TrinityErrorCode eResult; if ((eResult = CGetLockedCellInfo4AddCell(cellId, buff.Length, TrinityConfig.UndefinedCellType, out cellPtr, out entryIndex)) == TrinityErrorCode.E_DUPLICATED_CELL) { return(eResult); } Memory.Copy(buff, cellPtr, buff.Length); CReleaseCellLock(cellId, entryIndex); return(TrinityErrorCode.E_SUCCESS); #else fixed(byte *p = buff) { return(CLocalMemoryStorage.CAddCell(cellId, p, buff.Length, ushort.MaxValue)); } #endif }
public override TrinityErrorCode AddCell(long cellId, byte *buff, int cellSize, ushort cellType) { TrinityErrorCode eResult = CLocalMemoryStorage.CAddCell(cellId, buff, cellSize, cellType); return(eResult); }
public TrinityErrorCode AddCell(CellAccessOptions writeAheadLogOptions, long cellId, byte *buff, int offset, int cellSize) { return(CLocalMemoryStorage.CAddCell(cellId, buff + offset, cellSize, ushort.MaxValue, writeAheadLogOptions)); }
public TrinityErrorCode AddCell(CellAccessOptions writeAheadLogOptions, long cellId, byte *buff, int offset, int cellSize, ushort cellType) { TrinityErrorCode eResult = CLocalMemoryStorage.CAddCell(cellId, buff + offset, cellSize, cellType, writeAheadLogOptions); return(eResult); }