dep-protobuf/objectivec/GPBUnknownField_PackagePrivate.h
Thomas Van Lenten 799e73bee8 [ObjC] Small shuffling for code quality/style.
- 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
2026-05-01 12:23:14 -07:00

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