From 3e7217cb86a55e04d4867db69e9a71d927e4116a Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 12 Mar 2021 00:26:38 +0900 Subject: [PATCH] internal/atlas: Add comments to moveTo --- internal/atlas/image.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/atlas/image.go b/internal/atlas/image.go index b753e3603..0d2147d3a 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -193,6 +193,10 @@ type Image struct { isolatedCount int } +// moveTo moves its content to the given image dst. +// After moveTo is called, the image i is no longer available. +// +// moveTo is smilar to C++'s move semantics. func (i *Image) moveTo(dst *Image) { dst.dispose(false) *dst = *i