protobuf

Protocolbuffers
Download nu

protobuf Rangschikking & Samenvatting

Advertentie

  • Rating:
  • Vergunning:
  • BSD License
  • Prijs:
  • FREE
  • Naam uitgever:
  • The protobuf developers
  • Uitgever website:
  • http://code.google.com/p/protobuf/

protobuf Tags


protobuf Beschrijving

Protocolbuffers Protocolbuffers zijn Google's Data Interchange-indeling.Quick voorbeeld: u schrijft een .Proto-bestand zoals deze: bericht persoon {vereiste int32 ID = 1; Vereiste stringnaam = 2; Optionele string-e-mail = 3;} Dan compileer het met PROGOC, de Protocol Buffer Compiler, om code in C ++, Java of Python te produceren. Den, als u C ++ gebruikt, gebruikt u die code als volgt: Persoon; persoon. set_id (123); persoon.set_name ("Bob"); persoon.Set_email ("bob@example.com"); fstream out ("persoon.pb", iOS :: out | iOS :: Binary | iOS :: Trunc ); persoon.Serializetoostream (uit); out.close (); of als dit: persoon persoon; fstream in ("persoon.pb", iOS :: in | iOS :: binair); if (! persoon.parsefromistream (in )) {CERR-vereisten: · Python


protobuf Gerelateerde software