Skip to content

Commit

Permalink
protocol/bitset.go: Add Len() method to return size of BitSet (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz authored Dec 29, 2024
1 parent dfa7d57 commit 5af8736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions minecraft/protocol/bitset.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ func (b Bitset) Load(i int) bool {
}
return b.int.Bit(i) == 1
}

// Len returns the size of the Bitset.
func (b Bitset) Len() int {
return b.size
}

0 comments on commit 5af8736

Please sign in to comment.