OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 enum { | 46 enum { |
47 GPBWireFormatMessageSetItem = 1, | 47 GPBWireFormatMessageSetItem = 1, |
48 GPBWireFormatMessageSetTypeId = 2, | 48 GPBWireFormatMessageSetTypeId = 2, |
49 GPBWireFormatMessageSetMessage = 3 | 49 GPBWireFormatMessageSetMessage = 3 |
50 }; | 50 }; |
51 | 51 |
52 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) | 52 uint32_t GPBWireFormatMakeTag(uint32_t fieldNumber, GPBWireFormat wireType) |
53 __attribute__((const)); | 53 __attribute__((const)); |
54 GPBWireFormat GPBWireFormatGetTagWireType(uint32_t tag) __attribute__((const)); | 54 GPBWireFormat GPBWireFormatGetTagWireType(uint32_t tag) __attribute__((const)); |
55 uint32_t GPBWireFormatGetTagFieldNumber(uint32_t tag) __attribute__((const)); | 55 uint32_t GPBWireFormatGetTagFieldNumber(uint32_t tag) __attribute__((const)); |
56 BOOL GPBWireFormatIsValidTag(uint32_t tag) __attribute__((const)); | |
57 | 56 |
58 GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked) | 57 GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked) |
59 __attribute__((const)); | 58 __attribute__((const)); |
60 | 59 |
61 #define GPBWireFormatMessageSetItemTag \ | 60 #define GPBWireFormatMessageSetItemTag \ |
62 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup)) | 61 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup)) |
63 #define GPBWireFormatMessageSetItemEndTag \ | 62 #define GPBWireFormatMessageSetItemEndTag \ |
64 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup)) | 63 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup)) |
65 #define GPBWireFormatMessageSetTypeIdTag \ | 64 #define GPBWireFormatMessageSetTypeIdTag \ |
66 (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint)) | 65 (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint)) |
67 #define GPBWireFormatMessageSetMessageTag \ | 66 #define GPBWireFormatMessageSetMessageTag \ |
68 (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \ | 67 (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \ |
69 GPBWireFormatLengthDelimited)) | 68 GPBWireFormatLengthDelimited)) |
70 | 69 |
71 NS_ASSUME_NONNULL_END | 70 NS_ASSUME_NONNULL_END |
72 | 71 |
73 CF_EXTERN_C_END | 72 CF_EXTERN_C_END |
OLD | NEW |