| 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)); |
| 56 | 57 |
| 57 GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked) | 58 GPBWireFormat GPBWireFormatForType(GPBDataType dataType, BOOL isPacked) |
| 58 __attribute__((const)); | 59 __attribute__((const)); |
| 59 | 60 |
| 60 #define GPBWireFormatMessageSetItemTag \ | 61 #define GPBWireFormatMessageSetItemTag \ |
| 61 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup)) | 62 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatStartGroup)) |
| 62 #define GPBWireFormatMessageSetItemEndTag \ | 63 #define GPBWireFormatMessageSetItemEndTag \ |
| 63 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup)) | 64 (GPBWireFormatMakeTag(GPBWireFormatMessageSetItem, GPBWireFormatEndGroup)) |
| 64 #define GPBWireFormatMessageSetTypeIdTag \ | 65 #define GPBWireFormatMessageSetTypeIdTag \ |
| 65 (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint)) | 66 (GPBWireFormatMakeTag(GPBWireFormatMessageSetTypeId, GPBWireFormatVarint)) |
| 66 #define GPBWireFormatMessageSetMessageTag \ | 67 #define GPBWireFormatMessageSetMessageTag \ |
| 67 (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \ | 68 (GPBWireFormatMakeTag(GPBWireFormatMessageSetMessage, \ |
| 68 GPBWireFormatLengthDelimited)) | 69 GPBWireFormatLengthDelimited)) |
| 69 | 70 |
| 70 NS_ASSUME_NONNULL_END | 71 NS_ASSUME_NONNULL_END |
| 71 | 72 |
| 72 CF_EXTERN_C_END | 73 CF_EXTERN_C_END |
| OLD | NEW |