Skip to content

Commit

Permalink
Merge pull request #8 from koykov/byteptr_size
Browse files Browse the repository at this point in the history
Reduce byteptr size using the smallest bitset object.
  • Loading branch information
koykov authored Oct 22, 2023
2 parents 9a65e0f + 866d85a commit dc52aa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions byteptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
// Byteptr represents Vector implementation of byteptr.Byteptr object.
type Byteptr struct {
byteptr.Byteptr
bitset.Bitset
bitset.Bitset8
// Vector raw pointer.
vecPtr uintptr
}
Expand All @@ -36,7 +36,7 @@ func (p *Byteptr) RawBytes() []byte {
// Reset byteptr object.
func (p *Byteptr) Reset() {
p.Byteptr.Reset()
p.Bitset.Reset()
p.Bitset8.Reset()
p.vecPtr = 0
}

Expand Down

0 comments on commit dc52aa0

Please sign in to comment.