3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Protocol Buffers を用いた Objective-C のコード生成後の型対応表

Posted at

概要

Protocol Buffers 公式の変換後の型一覧に Objective-C の項目がなかったので記載します。
Protocol Buffers のバージョンは proto2 を用いています。
https://developers.google.com/protocol-buffers/docs/proto#scalar
https://developers.google.com/protocol-buffers/docs/proto3#scalar

対応表

.proto Type Objective-C Type
double double
float float
int32 int32_t
int64 int64_t
uint32 uint32_t
uint64 uint64_t
sint32 int32_t
sint64 int64_t
fixed32 uint32_t
fixed64 uint64_t
sfixed32 int32_t
sfixed64 int64_t
bool BOOL
string NSString
bytes NSData
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?