The source code for NA_vNewArray says "Call with buffer==NULL to allocate storage." This is handled in NA_NewAllFromBuffer and so applies to all the NA_New... functions. This needs to be mentioned in the documentation. Ed Jones