什么是byte []数组? [英] What is a byte[] array?

查看:234
本文介绍了什么是byte []数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是字节数组是.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 []数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆