Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 805dd1c

Browse files
committed
单个元素的解码
1 parent 193f68d commit 805dd1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

QuantBox.Data.Serializer/V2/PbTickCodec.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,14 @@ public List<PbTickView> Data2View(IEnumerable<PbTick> list, bool descending)
752752
return tempList;
753753
}
754754

755+
public PbTickView Data2View(PbTick tick, bool descending)
756+
{
757+
if (tick == null)
758+
return null;
759+
Int2DoubleConverter converter = new Int2DoubleConverter();
760+
return converter.Int2Double(tick, descending);
761+
}
762+
755763
public List<PbTick> View2Data(IEnumerable<PbTickView> list, bool descending)
756764
{
757765
if (list == null)

0 commit comments

Comments
 (0)