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