Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有字节...
Dim endframe As Byte
现在我知道我可以在那个字节中存储一个从 0 到 255 的数据值。但我想将其存储为 0 到 500。我可以这样做吗?如果是,那么我该如何实现呢?
您不能使用(Short) data type来代替字节类型。System.Int16
System.Int16
使用StreamWriter or BinaryWriter类方法将数据写入流。
StreamWriter or BinaryWriter