We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6d7839 commit ff78b24Copy full SHA for ff78b24
hardware/arduino/avr/libraries/EEPROM/src/EEPROM.h
@@ -256,6 +256,12 @@ class EEPROMClass{
256
return t;
257
}
258
259
+ //EEMEM helper: This function retrieves an object which uses the same type as the provided pointer.
260
+ template< typename T > T get( T *t ){
261
+ T result;
262
+ return get( t, result );
263
+ }
264
+
265
template< typename T > const T &put( EEPtr ptr, const T &t ){
266
const uint8_t *src = (const uint8_t*) &t;
267
for( int count = sizeof(T) ; count ; --count, ++ptr ) (*ptr).update( *src++ );
0 commit comments