您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

13 行
258 B

  1. #pragma once
  2. #include <Arduino.h>
  3. namespace utils {
  4. namespace flash {
  5. template<typename T, size_t N> size_t getArraySize(T(&)[N]) { return N; }
  6. template<typename T> void read(const T *source, T &dest) {
  7. memcpy_P(&dest, source, sizeof(T));
  8. }
  9. }
  10. }