mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Add nullability annotation
PiperOrigin-RevId: 637062647
This commit is contained in:
@@ -50,7 +50,7 @@ NSData *GNCMGenerateBLEFramesIntroductionPacket(NSData *serviceIDHash) {
|
||||
return packet;
|
||||
}
|
||||
|
||||
NSData *GNCMParseBLEFramesIntroductionPacket(NSData *data) {
|
||||
NSData *_Nullable GNCMParseBLEFramesIntroductionPacket(NSData *data) {
|
||||
::location::nearby::mediums::SocketControlFrame socket_control_frame;
|
||||
NSUInteger prefixLength = sizeof(kGNCMControlPacketServiceIDHash);
|
||||
NSData *packet = [data subdataWithRange:NSMakeRange(prefixLength, data.length - prefixLength)];
|
||||
|
||||
Reference in New Issue
Block a user