Lines Matching refs:buffer

60 //    to identifiers in the protocol buffer language, not to natural-language
302 // a dest buffer. This should be used for non performance critical
458 // All functions take the output buffer as an arg.
460 // which may not be the beginning of the input buffer.
463 // Suggested buffer size for FastToBuffer functions. Also works with
467 PROTOBUF_EXPORT char* FastInt32ToBuffer(int32 i, char* buffer);
468 PROTOBUF_EXPORT char* FastInt64ToBuffer(int64 i, char* buffer);
469 char* FastUInt32ToBuffer(uint32 i, char* buffer); // inline below
470 char* FastUInt64ToBuffer(uint64 i, char* buffer); // inline below
471 PROTOBUF_EXPORT char* FastHexToBuffer(int i, char* buffer);
472 PROTOBUF_EXPORT char* FastHex64ToBuffer(uint64 i, char* buffer);
473 PROTOBUF_EXPORT char* FastHex32ToBuffer(uint32 i, char* buffer);
476 inline char* FastIntToBuffer(int i, char* buffer) {
478 FastInt32ToBuffer(i, buffer) : FastInt64ToBuffer(i, buffer));
480 inline char* FastUIntToBuffer(unsigned int i, char* buffer) {
482 FastUInt32ToBuffer(i, buffer) : FastUInt64ToBuffer(i, buffer));
484 inline char* FastLongToBuffer(long i, char* buffer) {
486 FastInt32ToBuffer(i, buffer) : FastInt64ToBuffer(i, buffer));
488 inline char* FastULongToBuffer(unsigned long i, char* buffer) {
490 FastUInt32ToBuffer(i, buffer) : FastUInt64ToBuffer(i, buffer));
501 // their output to the beginning of the buffer (hence the name, as the
503 // the buffer has enough space to hold the output.
509 PROTOBUF_EXPORT char* FastInt32ToBufferLeft(int32 i, char* buffer);
510 PROTOBUF_EXPORT char* FastUInt32ToBufferLeft(uint32 i, char* buffer);
511 PROTOBUF_EXPORT char* FastInt64ToBufferLeft(int64 i, char* buffer);
512 PROTOBUF_EXPORT char* FastUInt64ToBufferLeft(uint64 i, char* buffer);
515 inline char* FastUInt32ToBuffer(uint32 i, char* buffer) {
516 FastUInt32ToBufferLeft(i, buffer);
517 return buffer;
519 inline char* FastUInt64ToBuffer(uint64 i, char* buffer) {
520 FastUInt64ToBufferLeft(i, buffer);
521 return buffer;
553 // buffer and return it. The buffer must be at least
563 PROTOBUF_EXPORT char* DoubleToBuffer(double i, char* buffer);
564 PROTOBUF_EXPORT char* FloatToBuffer(float i, char* buffer);
826 // Return the length to use for the output buffer given to the base64 escape
873 // in any external dependencies. The output buffer must be as least 4 bytes