leindex

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 1 Imported by: 0

README

leindex

Easily find a given little endian integer in a string based on a range.

This can be used to locate timestamps.

Example

res := leindex.IndexLE32(buf, 1546300800, 1672531200)

As for bytes.Index this method returns -1 if the value was not found.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexBE32 added in v0.1.1

func IndexBE32(buf []byte, min, max uint32) int

func IndexLE32

func IndexLE32(buf []byte, min, max uint32) int

func IndexLEbin

func IndexLEbin(buf, min, max []byte) int

func IndexRange added in v0.1.1

func IndexRange(buf, min, max []byte) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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