Example #1
0
 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));
 }
Example #2
0
 public NTSData(DataFormatCollection dataFormats, Chunk chunk)
     : base(chunk)
 {
     // chunk: expr
     formats = dataFormats;
 }
Example #3
0
 public TSData(DataFormatCollection tsFormats, Chunk chunk )
     : base(chunk)
 {
     this.tsFormats = tsFormats;
 }
Example #4
0
 public BatchExperiment( Chunk chunk )
     : base(chunk)
 {
 }
Example #5
0
 public Experiment( Chunk chunk, DataFormatCollection dataFmts )
     : base(chunk)
 {
     this.dataFormats = dataFmts;
 }
Example #6
0
 public DataFormatCollection(Chunk chunk)
     : base(chunk)
 {
 }
Example #7
0
 protected ChunkSerializable(Chunk chunk)
 {
     this.dataChunk = chunk;
 }
Example #8
0
 public void FillChunk(Chunk chunk)
 {
     ChunkImpl derivedChunk = chunk as ChunkImpl;
     FillSubchunks(derivedChunk);
     FillChunkBytes(derivedChunk);
     derivedChunk.IsAvaliable = true;
 }
Example #9
0
 public static object Parse(Chunk chunk, DataFormat fmt, int startOffset, out int readDataSize)
 {
     return Parse(chunk.ChunkBytes, fmt, startOffset, out readDataSize);
 }
Example #10
0
 public static void Parse(Chunk chunk, out string v)
 {
     v = ChunkReader.BytesToString(chunk.ChunkBytes);
 }