justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: WDL_TypedBuf::SetToZero(): Did you had any issues related to uninitialized memory? if (1) I want to hear about those cases. Thanks
Asked by Gio (94.70.26.x) on May 5 2022, 8:42pm
Reply on May 5 2022, 9:39pm:
    No, but there are a lot of cases of memset(buf.Get(),0,buf.GetSize()*sizeof(*buf.Get())) so it's nicer to just have buf.SetToZero()


Comments:
  • Posted by Gio (94.70.26.x) on May 6 2022, 2:53am:
    Thank you Justin! That was the first scenario that came to mind but I was unsure... Also, WDL_TypedBuf::GetSizeBytes() was a nice touch too ;)


Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2022 Justin Frankel. | RSS