Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Is there a non-allocating String similar to a string_view in NTL?
Re: Is there a non-allocating String similar to a string_view in NTL? [message #58465 is a reply to message #58464] Sat, 28 May 2022 09:32 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1093
Registered: August 2007
Senior Contributor
Do you really need intermeadiary level?

    const char *test = "this is a test \n";
    MemReadStream ms(test, strlen(test));
    Cout().Put(ms); //cheap... 


(De)serialization, which eventually involves copying if you're going to put the data into new String, can be done via Stream helpers.(Eg LoadStream, SaveStream et al.)

Best regards,
Oblivion


[Updated on: Sat, 28 May 2022 09:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Relocated Upp Folder - Missing Packages
Next Topic: No mouse hover tip?
Goto Forum:
  


Current Time: Sat May 11 16:18:58 CEST 2024

Total time taken to generate the page: 0.03827 seconds