*(*uint32)(dst.k) = *(*uint32)(k)
}
- if t.indirectvalue {
- *(*unsafe.Pointer)(dst.v) = *(*unsafe.Pointer)(v)
- } else {
- typedmemmove(t.elem, dst.v, v)
- }
+ typedmemmove(t.elem, dst.v, v)
dst.i++
// These updates might push these pointers past the end of the
// key or value arrays. That's ok, as we have the overflow pointer
*(*uint64)(dst.k) = *(*uint64)(k)
}
- if t.indirectvalue {
- *(*unsafe.Pointer)(dst.v) = *(*unsafe.Pointer)(v)
- } else {
- typedmemmove(t.elem, dst.v, v)
- }
+ typedmemmove(t.elem, dst.v, v)
dst.i++
// These updates might push these pointers past the end of the
// key or value arrays. That's ok, as we have the overflow pointer
// Copy key.
*(*string)(dst.k) = *(*string)(k)
- if t.indirectvalue {
- *(*unsafe.Pointer)(dst.v) = *(*unsafe.Pointer)(v)
- } else {
- typedmemmove(t.elem, dst.v, v)
- }
+ typedmemmove(t.elem, dst.v, v)
dst.i++
// These updates might push these pointers past the end of the
// key or value arrays. That's ok, as we have the overflow pointer