How to confirm a huge array never been copied when passing it into python? #4076
              
                Unanswered
              
          
                  
                    
                      leonleeann
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| A memoryview doesn't copy its data, it's just a reference to it. What is there to confirm? | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I need return a static const array from c++ to python. It is very huge so I want it would NOT be copied.
My question: How to confirm that it is NOT copied?
The c++ codes:
The python codes:
Beta Was this translation helpful? Give feedback.
All reactions