ptr = Pointer(Int32).malloc(1) ptr.as(Int8*) # :: Pointer(Int8). 在上方的例子中,並沒有進行檢查—— 指標非常的不安全,而這類型的轉型通常只在C 語言繫 ...
確定! 回上一頁