Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
add rsubset example
Browse files Browse the repository at this point in the history
  • Loading branch information
andrideng committed Oct 30, 2017
1 parent f3a182b commit d8b62de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example_byteslice_littleendian_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ func ExampleRToogle() {
fmt.Printf("%x\n", RToogle(data, toogleData))
// Output: 778811
}

func ExampleRSubset() {
data := []byte{0xDA, 0x99, 0xBA}
leastSignificantBit := (uint64)(100)
mostSignificantBit := (uint64)(101)
fmt.Printf("%x\n", RSubset(data, leastSignificantBit, mostSignificantBit))
// Output:
}

0 comments on commit d8b62de

Please sign in to comment.