Похожие чаты

Is there a way I can force Go to free

an object? Or at least hint it to set the ref counter to 0 and clean it on the next pass?

5 ответов

9 просмотров

Can you convert It to c objects?🤔

Liλn 🌻
No

So you need a function thay works like bzero or memset to null your pointers...and null memory space of that variable

Liλn 🌻
No

But you can use c headers to do bzero just import "C" and use bzero And pass your object as unsafe.pointer and the size of the variable that holds data in memory...easy peasy...Or use memset in c...no bloody way is to re-declare them...but it's a little hard to control

Liλn-🌻 Автор вопроса
uncle wizhard
But you can use c headers to do bzero just import ...

Actually I think I was asking the wrong question

Похожие вопросы

Обсуждают сегодня

Карта сайта