blocks

package
v0.0.0-...-43014c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2016 License: GPL-3.0, GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

modified to use our Sequence type instead of int64 Package blocks contains logic to detect overlap between segments of a contiguous data stream.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	A, B types.Sequence
}

func (Block) Overlap

func (blk Block) Overlap(a, b types.Sequence) *Block

func (Block) String

func (t Block) String() string

type BlockSegment

type BlockSegment struct {
	Block         Block
	Bytes         []byte
	IsCoalesce    bool
	IsCoalesceGap bool
}

type Blocks

type Blocks []Block

func (Blocks) Add

func (blks Blocks) Add(a, b types.Sequence) Blocks

func (Blocks) Len

func (blks Blocks) Len() int

func (Blocks) Less

func (blks Blocks) Less(i, j int) bool

func (Blocks) Overlaps

func (blks Blocks) Overlaps(a, b types.Sequence) Blocks

func (Blocks) String

func (t Blocks) String() string

func (Blocks) Swap

func (blks Blocks) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL