V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
CommandZi
V2EX  ›  问与答

请问一个关于 ReactiveX 操作数据流的方法

  •  
  •   CommandZi · Jul 18, 2018 · 706 views
    This topic created in 2843 days ago, the information mentioned may be changed or developed.

    有一段数据流,比如 [120, 0, 0, 45, 32, 56, 200, 120, 0, 0, 0, 3, 200]

    当中 120 为开头字节,200 为结尾字节,现在我想使用 ReactiveX 的方法来进行切片,比如说切成 [120, 0, 0, 45, 32, 56, 200],[120, 0, 0, 0, 3, 200] ,要怎么办?

    因为我找不到可以按照某些判断条件来进行分组的操作符,Buffer、Window 这两个都只能按照时间分组,并不适用。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:59 · PVG 02:59 · LAX 11:59 · JFK 14:59
    ♥ Do have faith in what you're doing.