LEFT | RIGHT |
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) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) | 3 * Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 void Asn1Header::SerializeSequence (std::bitset<10> optionalOrDefaultMask, bool
isExtensionMarkerPresent) const | 283 void Asn1Header::SerializeSequence (std::bitset<10> optionalOrDefaultMask, bool
isExtensionMarkerPresent) const |
284 { | 284 { |
285 SerializeSequence<10> (optionalOrDefaultMask,isExtensionMarkerPresent); | 285 SerializeSequence<10> (optionalOrDefaultMask,isExtensionMarkerPresent); |
286 } | 286 } |
287 | 287 |
288 void Asn1Header::SerializeSequence (std::bitset<11> optionalOrDefaultMask, bool
isExtensionMarkerPresent) const | 288 void Asn1Header::SerializeSequence (std::bitset<11> optionalOrDefaultMask, bool
isExtensionMarkerPresent) const |
289 { | 289 { |
290 SerializeSequence<11> (optionalOrDefaultMask,isExtensionMarkerPresent); | 290 SerializeSequence<11> (optionalOrDefaultMask,isExtensionMarkerPresent); |
291 } | 291 } |
292 | 292 |
293 void Asn1Header::SerializeSequenceOf (int numElems, int nMax, int nMin) const | 293 void Asn1Header::SerializeSequenceOf (size_t numElems, int nMax, int nMin) const |
294 { | 294 { |
295 // Clause 20.6 ITU-T X.691 | 295 // Clause 20.6 ITU-T X.691 |
296 SerializeInteger (numElems, nMin, nMax); | 296 SerializeInteger (static_cast<int>(numElems), nMin, nMax); |
297 } | 297 } |
298 | 298 |
299 void Asn1Header::SerializeEnum (int numElems, int selectedElem) const | 299 void Asn1Header::SerializeEnum (int numElems, int selectedElem) const |
300 { | 300 { |
301 // Clause 14 ITU-T X.691 | 301 // Clause 14 ITU-T X.691 |
302 SerializeInteger (selectedElem, 0, numElems - 1); | 302 SerializeInteger (selectedElem, 0, numElems - 1); |
303 } | 303 } |
304 | 304 |
305 void Asn1Header::SerializeChoice (int numOptions, int selectedOption, bool isExt
ensionMarkerPresent) const | 305 void Asn1Header::SerializeChoice (int numOptions, int selectedOption, bool isExt
ensionMarkerPresent) const |
306 { | 306 { |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 { | 756 { |
757 return bIterator; | 757 return bIterator; |
758 } | 758 } |
759 | 759 |
760 Buffer::Iterator Asn1Header::DeserializeSequenceOf (int *numElems, int nMax, int
nMin, Buffer::Iterator bIterator) | 760 Buffer::Iterator Asn1Header::DeserializeSequenceOf (int *numElems, int nMax, int
nMin, Buffer::Iterator bIterator) |
761 { | 761 { |
762 return DeserializeInteger (numElems,nMin,nMax,bIterator); | 762 return DeserializeInteger (numElems,nMin,nMax,bIterator); |
763 } | 763 } |
764 | 764 |
765 } // namespace ns3 | 765 } // namespace ns3 |
LEFT | RIGHT |