bindings/python/ns3_module_common.py
changeset 3416 926ccb845111
parent 3408 2cc40b3e4fa5
child 3457 2ff6f05b9467
equal deleted inserted replaced
3415:5dd595cb7eba 3416:926ccb845111
   367     cls.add_method('Read', 'void', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
   367     cls.add_method('Read', 'void', [param('uint8_t *', 'buffer'), param('uint32_t', 'size')])
   368     ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
   368     ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size) [member function]
   369     cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size')])
   369     cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size')])
   370     ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
   370     ## buffer.h: uint16_t ns3::Buffer::Iterator::CalculateIpChecksum(uint16_t size, uint32_t initialChecksum) [member function]
   371     cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
   371     cls.add_method('CalculateIpChecksum', 'uint16_t', [param('uint16_t', 'size'), param('uint32_t', 'initialChecksum')])
       
   372     ## buffer.h: uint32_t ns3::Buffer::Iterator::GetSize() const [member function]
       
   373     cls.add_method('GetSize', 'uint32_t', [], is_const=True)
   372     return
   374     return
   373 
   375 
   374 def register_Ns3Chunk_methods(root_module, cls):
   376 def register_Ns3Chunk_methods(root_module, cls):
   375     ## chunk.h: ns3::Chunk::Chunk() [constructor]
   377     ## chunk.h: ns3::Chunk::Chunk() [constructor]
   376     cls.add_constructor([], visibility='public')
   378     cls.add_constructor([], visibility='public')