Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Protocol Buffers and XS

by mojotoad (Monsignor)
on Jul 21, 2010 at 21:33 UTC ( [id://850729]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    message Person {
      required int32 id = 1;
    ...
    }
    
    option optimize_for = SPEED;
    
  2. or download this
    use ExtUtils::MakeMaker;
    
    ...
                  'XSOPT'         => '-C++',
              clean           => { FILES => "Person.* person.pb.* lib" }
             );
    
  3. or download this
    #ifdef __cplusplus
    extern "C" {
    ...
        str = SvPV(svVAL, len);
        sval.assign(str, len);
        THIS->set_email(sval);
    
  4. or download this
    // Generated by the protocol buffer compiler.  DO NOT EDIT!
    
    ...
    #endif  // SWIG
    
    #endif  // PROTOBUF_person_2eproto__INCLUDED
    
  5. or download this
    // Generated by the protocol buffer compiler.  DO NOT EDIT!
    
    ...
      metadata.reflection = Person_reflection_;
      return metadata;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://850729]
Approved by ww
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found