mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 17:44:59 +09:00
fix copy struct
This commit is contained in:
parent
dac849175f
commit
88c05033e3
3 changed files with 21 additions and 7 deletions
|
@ -13,11 +13,6 @@ var bytesPool = &sync.Pool{
|
|||
},
|
||||
}
|
||||
|
||||
type Type interface {
|
||||
Size() int
|
||||
MarshalToSizedBuffer(data []byte) (int, error)
|
||||
}
|
||||
|
||||
func CopyBlock(in *model.Block) (out *model.Block) {
|
||||
buf := bytesPool.Get().([]byte)
|
||||
size := in.Size()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue