mp3playerstationsrecord.cpp
来自「music player developemntm usic player de」· C++ 代码 · 共 44 行
CPP
44 行
/* ------------------------------------------------------------------------ Copyright (C) COMNEON electronic technology GmbH & Co. OHG. All rights reserved. ------------------------------------------------------------------------ This document contains proprietary information belonging to COMNEON. Passing on and copying of this document, use and communication of its contents is not permitted without prior written authorisation. ------------------------------------------------------------------------ */#include "MP3PlayerApplicationPreComp.hpp"#include "MP3PlayerStationsRecord.hpp"MP3PlayerStationsRecord::MP3PlayerStationsRecord( UINT32 radio_freq ){ m_data.radio_freq = radio_freq;};/* ------------------------------------------------------------------------ SetData ------------------------------------------------------------------------ */void MP3PlayerStationsRecord::SetData(const UINT8* data) { if (data != 0) { memcpy(&m_data, data, sizeof(MP3PlayerStationsRecord::Persist)); }} // SetData/* ------------------------------------------------------------------------ GetPersistentSize ------------------------------------------------------------------------ */INT MP3PlayerStationsRecord::GetPersistentSize(){ return sizeof(Persist); //sizeof(AudioSetRecord::Persist); } // GetPersistentSize/* ------------------------------------------------------------------------ GetData ------------------------------------------------------------------------ */const UINT8* MP3PlayerStationsRecord::GetData(){ return (const UINT8*)&m_data;} // GetData
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?