mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-21 19:47:37 +08:00
fix(pbuf): dat passing
This commit is contained in:
@@ -48,6 +48,7 @@ func (bufferPool BufferPool) ParseBytes(b ...byte) Bytes {
|
|||||||
// Trans please refer to Item.Trans().
|
// Trans please refer to Item.Trans().
|
||||||
func (b Bytes) Trans() (tb Bytes) {
|
func (b Bytes) Trans() (tb Bytes) {
|
||||||
tb.buf = b.buf.Trans()
|
tb.buf = b.buf.Trans()
|
||||||
|
tb.dat = b.dat
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,12 +70,14 @@ func (b Bytes) Bytes() []byte {
|
|||||||
// Ref please refer to Item.Ref().
|
// Ref please refer to Item.Ref().
|
||||||
func (b Bytes) Ref() (rb Bytes) {
|
func (b Bytes) Ref() (rb Bytes) {
|
||||||
rb.buf = b.buf.Ref()
|
rb.buf = b.buf.Ref()
|
||||||
|
rb.dat = b.dat
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy please refer to Item.Copy().
|
// Copy please refer to Item.Copy().
|
||||||
func (b Bytes) Copy() (cb Bytes) {
|
func (b Bytes) Copy() (cb Bytes) {
|
||||||
cb.buf = b.buf.Copy()
|
cb.buf = b.buf.Copy()
|
||||||
|
cb.dat = b.dat
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user