Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 242469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:50:25+00:00 2026-05-11T20:50:25+00:00

I like the convenience of NSMutableArray but sometimes you just need to drop down

  • 0

I like the convenience of NSMutableArray but sometimes you just need to drop down to good ole C-arrays. Like when you are feeding interleaved vertex arrays to OpenGL.

What is the fastest way of copying the contents of an NSMutableArray to a C-array?

Yah, I realize this bit shuffling introduces inefficiency but I’d like to see if I can sneak by with this approach without taking a hit in frame rate.

Cheers,
Doug

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:50:25+00:00Added an answer on May 11, 2026 at 8:50 pm

    from cocoabuilder mailing list

    id *buffer = malloc(numberOf_ItemsIWant_ToFetch * sizeof(id));
    [myArray getObjects:buffer range:rangeOfItems]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I often use convenience functions that return pointers to static buffers like this: char*
Like I understand, @synthesize actually is generating the Getters and Setters. But what's @property
Like many people here, I started my programming experience with the good ol' green
For convenience, I'd like to be able to cast between two types defined in
I really like to use static methods (especially for helpers classes). But as static
When I'm using jQuery in no conflict mode I still like the convenience of
My CMS links to other sites for convenience and I'd like to hide the
Are there convenience methods for sorting arrays and collections that support method chaining in
Consider the following two allocations of arrays. NSMutableArray* alpha = [[[NSMutableArray alloc] init] autorelease];
It seems like a strange convenience property, only saving one character. Is there some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.