From 866d85aad07161c2377d6288d76e783817702be8 Mon Sep 17 00:00:00 2001 From: Konstantin Voykov Date: Sun, 22 Oct 2023 23:45:56 +0300 Subject: [PATCH] Reduce byteptr size using the smallest bitset object. --- byteptr.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/byteptr.go b/byteptr.go index 1f65963..2060c9b 100644 --- a/byteptr.go +++ b/byteptr.go @@ -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 } @@ -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 }