Int16 指“16 位有符号整数”数据类型,常见于编程语言与平台(尤其是 .NET)中;它通常占用 2 字节,取值范围一般为 -32768 到 32767。(在不同语言/平台中也可能写作 short、int16_t 等相关形式。)
/ˌɪnt sɪkˈstiːn/
I stored the value as an Int16.
我把这个值存成了 Int16 类型。
To reduce memory usage, the program converts the sensor readings to Int16, but it must check for overflow when values exceed the 16-bit range.
为了减少内存占用,程序把传感器读数转换为 Int16,但当数值超过 16 位范围时必须检查是否溢出。
Int16 可理解为 int (integer,整数) + 16(16 位) 的组合命名:用数字直接标明该整数类型的位宽。它在 .NET 等体系中常作为类型名(如 System.Int16),与其它位宽类型(如 Int32、Int64)形成一套一致的命名方式。
System.Int16 等类型时会出现该术语)Int16/System.Int16)