Comments (6)
Oh you are fast!
Yes, that would be fantastic. I sorted it locally by saving and restoring the first byte and uninitialized resize. But a fix in ETL would be great of course.
from etl.
There isn't a way at the moment. I will have to add a flag to the constructor to disable null termination of the buffer. I can send you an interim patch if you like?
from etl.
Actually, there is a way, I just forgot about it.
You use this constructor...
string_ext(const char* text, char* buffer, size_type buffer_size)
The constructor will recognise that the address of text
is the same as buffer
and just set the size of the string to the length of text
.
from etl.
I will be damned.
But every constructor of
etl_string_ext
also initializes (or assigns) the string
I would've sworn I tried them all. But I confirm, problem solved! Thank you sir!
from etl.
But every constructor of
etl_string_ext
also initializes (or assigns) the string
If the address of text
is different from buffer
, then it will.
from etl.
Yeah had a quick look, silly that I missed that.
from etl.
Related Issues (20)
- Allow `etl::delegate::create()` to accept instance pointer for member functions? HOT 9
- Implement SAE J1850 CRC8 HOT 1
- HFSM state changed with error state HOT 11
- etl::remove_if calls predicate twice for first iterator, where predicate returns true. HOT 1
- `etl::forward_link` does not have constexpr ctor anymore HOT 1
- etl::optional cannot return an optional object of self from member function HOT 4
- etl::send_message doesn't allow for non-virtual calls HOT 1
- `message_bus` doesn't deliver unknown messages HOT 3
- Multiple variable shadowing warnings in private/bitset_new.h HOT 1
- Feature Request `etl::message_router` virtual inheritance HOT 2
- Fixed Extent etl::span shouldn't allow default constructor HOT 1
- Fixed Extent etl::span ambiguous function overloads
- Declaration order for etl::first_set_bit_position in binary.h
- Feature Request: Can we add boost::di components? HOT 1
- Possible bug on assign of etl::array
- gcc warning: potential null pointer dereference [-Wnull-dereference] using etl::map::insert HOT 7
- Change unit test error handling from using exceptions to using an error handler
- Optional assignment operator may access uninitialized storage value
- char_traits.h throws warning for GHS compiler HOT 1
- Compiler error with etl::variant HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etl.