Skip to content

Initialize buffers with zero-fill #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 6, 2020

Conversation

ishitatsuyuki
Copy link
Contributor

vec! can make use of calloc to initialize buffer in a identically fast and safer way.

Here's the usual go-to reference for all your doubts.

Also the original code had these operations interleaved operations on the Vec with other constructions which seems mysterious, be careful when reviewing and auditing.

MichaelHills added a commit to MichaelHills/coreaudio-rs that referenced this pull request Dec 5, 2020
vec! can make use of calloc to initialize buffer in a identically fast and safer way.
@MichaelHills MichaelHills merged commit 415aefd into RustAudio:master Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants