Re:Panic at the Job Market
by CoastalCoder on Wednesday July 17, 2024 @06:54PM
(#40991088)
This sounds kinda plausible.
IIRC, some string implementations have separate implementations for very short strings vs. longer ones. Similar thing for vectors.
I also see some size-related logic in the (current?) String implementation [0] [1].
String is a class with no virtual methods, and its first data member is a pointer to the underlying buffer [2]. So if Stream.printf unintentionally type-puns String to char*, it might work out okay?
IIRC, some string implementations have separate implementations for very short strings vs. longer ones. Similar thing for vectors.
I also see some size-related logic in the (current?) String implementation [0] [1].
String is a class with no virtual methods, and its first data member is a pointer to the underlying buffer [2]. So if Stream.printf unintentionally type-puns String to char*, it might work out okay?
[0] https://github.com/arduino/ArduinoCore-API/blob/master/api/S...
[1] https://github.com/arduino/ArduinoCore-API/blob/master/api/S...
[2] https://github.com/arduino/ArduinoCore-API/blob/cb3ab4c90d71...