package Ġcom . ap ol log raph ql . apollo . network Ċ Ċ import Ġkotlinx . c interop . address Of Ċ import Ġkotlinx . c interop . convert Ċ import Ġkotlinx . c interop . use Pin ned Ċ import Ġplatform . Foundation . NS Data Ċ import Ġplatform . Foundation . NS Mutable Data Ċ import Ġplatform . Foundation . append Bytes Ċ Ċ fun ĠByteArray . to NS Data (): ĠNS Data Ġ= ĠNSMutable Data (). apply Ġ{ ĊĠ Ġif Ġ( isEmpty ()) Ġreturn @ apply ĊĠ Ġthis @ to NS Data . use Pin ned Ġ{ ĊĠĠĠ Ġappend Bytes ( it . address Of ( 0 ), Ġsize . convert ()) ĊĠ Ġ} Ċ } Ċ