问题描述
什么是字节
数组是.NET框架的背景下?
What is a byte
array is in the context of .NET framework?
我所熟悉的如阵列
和标准定义字节
和非常熟悉的电子工程的概念,如字节。但我无法将其连接在计算机科学概念的术语。我看到它无处不在,我用它与出真正理解它深刻。
I am familiar with standard definitions like array
and byte
and very familiar with electronic engineering concepts such as Byte. But I fail to connect it in terms of computer science concepts. I see it used everywhere, and I use it with out really understanding it deeply.
推荐答案
在.NET中,一个字节
基本上是一个数 0
到 255
(可以重新以8位psented $ P $的数字)。
In .NET, a byte
is basically a number from 0
to 255
(the numbers that can be represented by eight bits).
所以,字节
数组的数字只是一个数组0 - 255
So, a byte
array is just an array of the numbers 0 - 255.
在一个较低的水平,数组是一个连续的内存块和字节数组仅仅是一个重新$内存的8位划分成p $ psentation。
At a lower level, an array is a contiguous block of memory, and a byte array is just a representation of that memory in 8-bit chunks.
这篇关于什么是byte []数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!