mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
- Add some casts to avoid warnings with signed/unsigned comparisons. - Use `objc_direct` for some internal helpers and get out of having the one class know about the internals of the other class. - Update GPBUtilities to not need to know internals of these PiperOrigin-RevId: 908844212
24 lines
983 B
Objective-C
24 lines
983 B
Objective-C
// Protocol Buffers - Google's data interchange format
|
|
// Copyright 2008 Google Inc. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file or at
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "GPBUnknownField.h"
|
|
|
|
@interface GPBUnknownField ()
|
|
|
|
- (nonnull instancetype)initWithNumber:(int32_t)number varint:(uint64_t)varint;
|
|
- (nonnull instancetype)initWithNumber:(int32_t)number fixed32:(uint32_t)fixed32;
|
|
- (nonnull instancetype)initWithNumber:(int32_t)number fixed64:(uint64_t)fixed64;
|
|
- (nonnull instancetype)initWithNumber:(int32_t)number lengthDelimited:(nonnull NSData *)data;
|
|
- (nonnull instancetype)initWithNumber:(int32_t)number group:(nonnull GPBUnknownFields *)group;
|
|
|
|
- (size_t)computeSerializedSize __attribute__((objc_direct));
|
|
- (void)writeToCodedOutputStream:(nonnull GPBCodedOutputStream *)output
|
|
__attribute__((objc_direct));
|
|
|
|
@end
|