Searched refs:in (Results 1 – 25 of 75) sorted by relevance
123
/nanopb-2.7.6/docs/ |
D | whats_new.md | 1 # Nanopb: New features in nanopb 0.4 3 ## What's new in nanopb 0.4 5 Long in the making, nanopb 0.4 has seen some wide reaching improvements 6 in reaction to the development of the rest of the protobuf ecosystem. 10 A lot of effort has been spent in retaining backwards and forwards 17 messages is stored in a compact descriptor format, which is iterated in 25 Now in 0.4, the descriptor format was completely decoupled from the 28 between 8 and 32 bytes in size, depending on compilation options and 35 less storage space. Most fields use 2 words, while simple fields in 38 the `AllTypes` test case, 0.3 had data size of 1008 bytes in [all …]
|
D | migration.md | 6 error indications are included, in order to make it easier to find this 14 **Changes:** Back in 2018, it was considered in pull request #241 to 38 code can crash inside `load_descriptor_values()` in 78 **Changes:** Now field information is encoded more efficiently in 79 `uint32_t` array in a variable-length format. Old 82 with most old callback definitions. The field definitions in 86 information in `pb_field_t`, it must be modified to do so 87 only through the functions declared in `pb_common.h`. 95 generated files and used only basename of files in 113 **Rationale:** Google's Python protobuf library, which is used in [all …]
|
D | concepts.md | 31 Using generator options, you can set maximum sizes for fields in order 44 options](reference.html#proto-file-options) section in the reference 49 Nanopb uses streams for accessing the data in encoded format. The stream 79 The `callback` for output stream may be NULL, in which case the stream 113 6) You don't need to know the length of the message in advance. After 115 `false`. `pb_decode()` will detect this and if the EOF was in a proper 164 2) If there is a special option `(nanopb).max_size` specified in the 217 The maximum lengths are checked in runtime. If string/bytes/array 234 storage for it. Instead, it allows you to handle the field in whatever 243 The actual behavior of the callback function is different in encoding [all …]
|
D | index.md | 3 Nanopb is an ANSI-C library for encoding and decoding messages in 53 6) You can use either encoder or decoder alone to cut the code size in half. 57 8) Callback mechanism for handling messages larger than can fit in available RAM. 65 4) Fields in the generated structs are ordered by the tag number, instead of the natural ordering … 67 …ime introspection) is not supported. E.g. you can't request a field by giving its name in a string. 68 7) Numeric arrays are always encoded as packed, even if not marked as packed in .proto. 69 8) Cyclic references between messages are supported only in callback and malloc mode. 85 Save this in `message.proto` and compile it: 89 You should now have in `message.pb.h`: 103 Now in your main program do this to encode a message: [all …]
|
D | reference.md | 5 The following options can be specified in one of two ways: 13 * `PB_ENABLE_MALLOC`: Enable dynamic allocation support in the decoder. 20 * `PB_ENCODE_ARRAYS_UNPACKED`: Encode scalar arrays in the unpacked format, which takes up more spa… 26 recognized automatically by C-preprocessor `#if`-directives in the 33 in the [nanopb.proto](https://github.com/nanopb/nanopb/blob/master/generator/proto/nanopb.proto) fi… 37 * `max_count`: Allocated maximum number of entries in arrays (`repeated` fields). 39 * `long_names`: Prefix the enum name to the enum value in definitions, i.e. `EnumName_EnumValue`. E… 41 …message from generation. Can be used to remove message types that are not needed in an application. 47 …s only for nanopb generator. Defaults to name defined by `package` keyword in .proto file, which a… 48 …ecify `int_size = IS_8` to convert `int32` from protocol definition into `int8_t` in the structure. [all …]
|
D | security.md | 3 Importance of security in a Protocol Buffers library 21 control of the application writer. Malicious data in these structures 24 1. Callback, pointer and extension fields in message structures given 26 and are generated depending on the message definition in the .proto 35 in these will cause "garbage in, garbage out" behaviour. It will not 40 2. All fields in message structures, except: 84 3. If using stream input, a maximum size should be set in
|
/nanopb-2.7.6/ |
D | CHANGELOG.txt | 7 Fix compiler error in generated initializer for submessage callback (#631) 8 Fix duplicate union definition in generated file (#637) 19 Fix recursion depth exceeded error in generator (#493) 21 Add support for proto3 optional fields introduced in protoc 3.12 (#591) 26 Include version number in generator verbose output 33 Fix generator error when output is in current directory (#553) 37 Better support C++ types in generated structs (#577) 67 Fix handling of varying NaN representations in PB_CONVERT_DOUBLE_FLOAT (#543) 73 Add type_override option to override type defined in .proto (#497) 75 Include protoc-gen-nanopb in path in protoc wrapper script [all …]
|
D | README.md | 6 Nanopb is a small code-size Protocol Buffers implementation in ansi C. It is 7 especially suitable for use in microcontrollers, but fits any memory 22 2. Include *pb_encode.c*, *pb_decode.c* and *pb_common.c* in your project. 24 The easiest way to get started is to study the project in "examples/simple". 26 However, for any other kind of build system, see the manual steps in 27 README.txt in that folder. 32 Protocol Buffers messages are defined in a `.proto` file, which follows a standard 64 end in an error, the test cases were successful. 81 takes in the `.proto` files and outputs `.pb.c` definitions. 88 * **Bazel**: `BUILD` in source root [all …]
|
/nanopb-2.7.6/tests/anonymous_oneof/ |
D | SConscript | 6 if 'clang' in env['CC'] or 'gcc' in env['CC']: 8 if '-pedantic' in env2['CFLAGS']:
|
/nanopb-2.7.6/tests/any_type/google/protobuf/ |
D | any.proto | 5 // Redistribution and use in source and binary forms, with or without 11 // * Redistributions in binary form must reproduce the above 13 // in the documentation and/or other materials provided with the 45 // Protobuf library provides support to pack/unpack Any values in the form 48 // Example 1: Pack and unpack a message in C++. 58 // Example 2: Pack and unpack a message in Java. 67 // Example 3: Pack and unpack a message in Python. 77 // Example 4: Pack and unpack a message in Go 90 // in the type URL, for example "foo.bar.com/x/y.z" will yield type 114 // `value` which holds the custom JSON in addition to the `@type` [all …]
|
D | duration.proto | 5 // Redistribution and use in source and binary forms, with or without 11 // * Redistributions in binary form must reproduce the above 13 // in the documentation and/or other materials provided with the 46 // or "month". It is related to Timestamp in that the difference between 52 // Example 1: Compute Duration from two Timestamps in pseudo code. 69 // Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. 86 // Example 3: Compute Duration from datetime.timedelta in Python. 95 // object, where the string ends in the suffix "s" (indicating seconds) and 98 // encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should 99 // be expressed in JSON format as "3.000000001s", and 3 seconds and 1 [all …]
|
/nanopb-2.7.6/tests/generator_relative_paths/proto/protobuf/ |
D | any.proto | 5 // Redistribution and use in source and binary forms, with or without 11 // * Redistributions in binary form must reproduce the above 13 // in the documentation and/or other materials provided with the 45 // Protobuf library provides support to pack/unpack Any values in the form 48 // Example 1: Pack and unpack a message in C++. 58 // Example 2: Pack and unpack a message in Java. 67 // Example 3: Pack and unpack a message in Python. 77 // Example 4: Pack and unpack a message in Go 90 // in the type URL, for example "foo.bar.com/x/y.z" will yield type 114 // `value` which holds the custom JSON in addition to the `@type` [all …]
|
/nanopb-2.7.6/generator/proto/google/protobuf/ |
D | descriptor.proto | 5 // Redistribution and use in source and binary forms, with or without 11 // * Redistributions in binary form must reproduce the above 13 // in the documentation and/or other materials provided with the 35 // The messages in this file describe the definitions found in .proto files. 67 // Indexes of the public imported files in the dependency list above. 69 // Indexes of the weak imported files in the dependency list. 73 // All top-level definitions in this file. 115 // fields or extension ranges in the same message. Reserved ranges may 122 // Reserved field names, which may not be used by fields in the same message. 131 // Clients can define custom options in extensions of this message. See above. [all …]
|
/nanopb-2.7.6/tests/oneof/ |
D | oneof.proto | 10 /* Oneof in a message with other fields */ 23 /* Oneof in a message by itself */
|
/nanopb-2.7.6/tests/ |
D | SConstruct | 30 for var,val in ARGUMENTS.items(): 31 if var in list_vars: 63 if platform.system() == "Darwin" and 'CC' not in ARGUMENTS: 66 # Add the builders defined in site_init.py 132 if 'gcc' in env['CC']: 142 if 'gcc' in env['CC']: 150 if 'clang' in env['CC']: 160 if 'gcc' in env['CC']: 168 # enums in some of the tests. 180 elif 'clang' in env['CC']: [all …]
|
/nanopb-2.7.6/tests/any_type/ |
D | anytest.proto | 1 // This file is an example and test case on handling the Any type in nanopb. 2 // The Any type is defined in Google-provided any.proto file: 15 // This does result in unnecessarily copying the data around, so for larger
|
/nanopb-2.7.6/generator/proto/ |
D | nanopb.proto | 3 // - Maximum number of elements in array 23 IS_DEFAULT = 0; // Default, 32/64bit based on type in .proto 46 // a field. When it is used in message or file scope, it applies to all 57 // Allocated number of entries in arrays ('repeated' fields) 118 // Prior to nanopb-0.4.0, the callback was specified in per-field pb_callback_t 121 // will be called for all callback fields in a message type. 126 // ok, but if it results in compilation errors you can increase the field 133 // Extra files to include in generated `.pb.h` 143 // Override type of the field in generated C code. Only to be used with related field types 146 // Due to historical reasons, nanopb orders fields in structs by their tag number [all …]
|
/nanopb-2.7.6/tests/cxx_callback_datatype/ |
D | SConscript | 10 # 'offsetof' in C++98 requires POD type, C++11 standard relaxes that to standard-layout class. 12 for std in ["c++11", "c++14", "c++17", "c++20"]: 26 objects = [ e.Object('{}_{}'.format(os.path.basename(s), std), s) for s in sources ]
|
/nanopb-2.7.6/tests/proto3_optional/ |
D | SConscript | 2 # This is supported in protoc 3.12 and newer. 8 if 'PROTOC_VERSION' in env:
|
/nanopb-2.7.6/examples/network_server/ |
D | fileproto.options | 2 # in fileproto.proto. 10 # to set a limit on the number of files in the response.
|
/nanopb-2.7.6/tests/package_name/ |
D | SConscript | 9 assert placeholder in data 21 '''Add package name to type names in .c file.''' 26 for name in type_names:
|
/nanopb-2.7.6/tests/options/ |
D | options.proto | 2 * options.expected lists the patterns that are searched for in the output. 93 // Proto3-style optional field in proto2 file 106 // Wide descriptor option in a single field 122 // Overriden type in generated C code
|
/nanopb-2.7.6/tests/regression/issue_487/ |
D | SConscript | 2 # Problem in default_value() with nested messages
|
/nanopb-2.7.6/tests/common_unittests/ |
D | SConscript | 1 # Test functions in pb_common.c
|
/nanopb-2.7.6/tests/regression/issue_472/ |
D | SConscript | 1 # Regression test for issue #472: submsg_callback fails to compile in Atmel Studio
|
123