LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 567 |
568 uint8_t | 568 uint8_t |
569 UanHeaderRcAck::GetFrameNo (void) const | 569 UanHeaderRcAck::GetFrameNo (void) const |
570 { | 570 { |
571 return m_frameNo; | 571 return m_frameNo; |
572 } | 572 } |
573 | 573 |
574 uint8_t | 574 uint8_t |
575 UanHeaderRcAck::GetNoNacks (void) const | 575 UanHeaderRcAck::GetNoNacks (void) const |
576 { | 576 { |
577 return m_nackedFrames.size (); | 577 return static_cast<uint8_t>(m_nackedFrames.size ()); |
578 } | 578 } |
579 | 579 |
580 uint32_t | 580 uint32_t |
581 UanHeaderRcAck::GetSerializedSize (void) const | 581 UanHeaderRcAck::GetSerializedSize (void) const |
582 { | 582 { |
583 return 1 + 1 + GetNoNacks (); | 583 return 1 + 1 + GetNoNacks (); |
584 } | 584 } |
585 | 585 |
586 void | 586 void |
587 UanHeaderRcAck::Serialize (Buffer::Iterator start) const | 587 UanHeaderRcAck::Serialize (Buffer::Iterator start) const |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 } | 625 } |
626 } | 626 } |
627 | 627 |
628 TypeId | 628 TypeId |
629 UanHeaderRcAck::GetInstanceTypeId (void) const | 629 UanHeaderRcAck::GetInstanceTypeId (void) const |
630 { | 630 { |
631 return GetTypeId (); | 631 return GetTypeId (); |
632 } | 632 } |
633 | 633 |
634 } // namespace ns3 | 634 } // namespace ns3 |
LEFT | RIGHT |