Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
m2mblockmessage_stub.cpp
00001 /* 00002 * Copyright (c) 2015 ARM Limited. All rights reserved. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * Licensed under the Apache License, Version 2.0 (the License); you may 00005 * not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #include "m2mblockmessage_stub.h" 00017 00018 bool m2mblockmessage_stub::is_block_message; 00019 bool m2mblockmessage_stub::is_last_block; 00020 void m2mblockmessage_stub::clear() 00021 { 00022 00023 } 00024 00025 /* 00026 * Copyright (c) 2015 ARM Limited. All rights reserved. 00027 * SPDX-License-Identifier: Apache-2.0 00028 * Licensed under the Apache License, Version 2.0 (the License); you may 00029 * not use this file except in compliance with the License. 00030 * You may obtain a copy of the License at 00031 * 00032 * http://www.apache.org/licenses/LICENSE-2.0 00033 * 00034 * Unless required by applicable law or agreed to in writing, software 00035 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 00036 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00037 * See the License for the specific language governing permissions and 00038 * limitations under the License. 00039 */ 00040 #include "mbed-client/m2mblockmessage.h" 00041 #include <assert.h> 00042 #include <cstdlib> 00043 #include <cstring> 00044 M2MBlockMessage::M2MBlockMessage() 00045 { 00046 } 00047 00048 M2MBlockMessage::~M2MBlockMessage() 00049 { 00050 00051 } 00052 00053 void M2MBlockMessage::set_message_info(sn_coap_hdr_s *coap_header) 00054 { 00055 00056 } 00057 00058 void M2MBlockMessage::clear_values() 00059 { 00060 00061 } 00062 00063 bool M2MBlockMessage::is_block_message() const 00064 { 00065 return m2mblockmessage_stub::is_block_message; 00066 } 00067 00068 uint16_t M2MBlockMessage::block_number() const 00069 { 00070 00071 } 00072 00073 uint32_t M2MBlockMessage::total_message_size() const 00074 { 00075 00076 } 00077 00078 bool M2MBlockMessage::is_last_block() const 00079 { 00080 return m2mblockmessage_stub::is_last_block; 00081 } 00082 00083 uint8_t* M2MBlockMessage::block_data() const 00084 { 00085 00086 } 00087 00088 uint32_t M2MBlockMessage::block_data_len() const 00089 { 00090 00091 } 00092 00093 M2MBlockMessage::Error M2MBlockMessage::error_code() const 00094 { 00095 00096 }
Generated on Tue Jul 12 2022 21:20:26 by
1.7.2