Exemplo n.º 1
0
        /// <summary>
        /// Gets the slice of the specified input channels at the timestamp.
        /// </summary>
        protected void GetSlice(ConnectedClient client, DataPacket request, out ResponsePacket response)
        {
            byte[] buffer = request.Buffer;
            int    index  = ArgumentIndex;

            int[]    cnlNums    = GetIntArray(buffer, ref index);
            DateTime timestamp  = GetTime(buffer, ref index);
            int      archiveBit = GetByte(buffer, ref index);

            Slice slice = archiveHolder.GetSlice(cnlNums, timestamp, archiveBit);

            response = new ResponsePacket(request, client.OutBuf);
            index    = ArgumentIndex;
            CopyCnlDataArray(slice.CnlData, client.OutBuf, ref index);
            response.BufferLength = index;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the slice of the specified input channels at the timestamp.
 /// </summary>
 public Slice GetSlice(int[] cnlNums, DateTime timestamp, int archiveBit)
 {
     return(archiveHolder.GetSlice(cnlNums, timestamp, archiveBit));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets the slice of the specified channels at the timestamp.
 /// </summary>
 public Slice GetSlice(int archiveBit, DateTime timestamp, int[] cnlNums)
 {
     return(archiveHolder.GetSlice(archiveBit, timestamp, cnlNums));
 }