MCPcopy Create free account
hub / github.com/arvidn/libtorrent / construct

Method construct

src/entry.cpp:535–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533 }
534
535 void entry::construct(data_type t)
536 {
537 switch (t)
538 {
539 case int_t:
540 new (&data) integer_type(0);
541 break;
542 case string_t:
543 new (&data) string_type;
544 break;
545 case list_t:
546 new (&data) list_type;
547 break;
548 case dictionary_t:
549 new (&data) dictionary_type;
550 break;
551 case undefined_t:
552 break;
553 case preformatted_t:
554 new (&data) preformatted_type;
555 break;
556 }
557 m_type = t;
558#if TORRENT_USE_ASSERTS
559 m_type_queried = true;
560#endif
561 }
562
563 void entry::copy(entry const& e)
564 {

Callers 2

swapMethod · 0.45
allocate_jobMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected