private void ReadTimeStampAndFormatIndex(Chunk tsChunk, out int timeStamp, out int formatIdx) { byte[] tsIdxBytes = tsChunk.ReadChunkBytes(0, sizeof(int) * 2); timeStamp = ChunkReader.BigEndianBytesToInt32(tsIdxBytes, 0); formatIdx = ChunkReader.BigEndianBytesToInt32(tsIdxBytes, sizeof(int)); }
public NTSData(DataFormatCollection dataFormats, Chunk chunk) : base(chunk) { // chunk: expr formats = dataFormats; }
public TSData(DataFormatCollection tsFormats, Chunk chunk ) : base(chunk) { this.tsFormats = tsFormats; }
public BatchExperiment( Chunk chunk ) : base(chunk) { }
public Experiment( Chunk chunk, DataFormatCollection dataFmts ) : base(chunk) { this.dataFormats = dataFmts; }
public DataFormatCollection(Chunk chunk) : base(chunk) { }
protected ChunkSerializable(Chunk chunk) { this.dataChunk = chunk; }
public void FillChunk(Chunk chunk) { ChunkImpl derivedChunk = chunk as ChunkImpl; FillSubchunks(derivedChunk); FillChunkBytes(derivedChunk); derivedChunk.IsAvaliable = true; }
public static object Parse(Chunk chunk, DataFormat fmt, int startOffset, out int readDataSize) { return Parse(chunk.ChunkBytes, fmt, startOffset, out readDataSize); }
public static void Parse(Chunk chunk, out string v) { v = ChunkReader.BytesToString(chunk.ChunkBytes); }