New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bfchain/algorithm-stream-merger

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bfchain/algorithm-stream-merger

> An Algorithm of Merge

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Algorithm Stream Merger

An Algorithm of Merge

归并算法:用来将碎片数据通过规则不断合并成更大的数据,并提供查询功能。

定义了三个名词:

  1. Frame 帧
  2. Fragment 片段,由连续的帧组成
  3. Stream 流,由不连续的片段拼接而成。是一个简单的片段管理器

这里最关键的概念是 Frame,也就是帧。 开发者可以自定义帧的概念是什么?并且通过定义:

    1. 如何对比两帧之间的顺序?
    2. 两帧是否是连续的?

从而就能实现自动合并片段的功能

此外,还有一个方向的概念:ORDER,本项目中:

  1. left被定义为start
  2. right被定义为end
  3. up被定义为to-right/from-left
  4. down被定义为to-left/from-right
  5. startend 的含义取决于 order
    1. orderup时,startleftendright
    2. orderdown时,startrightendleft

FAQs

Package last updated on 01 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc