缓冲区buffer,字节数组 bytep[] arraysample与内存流memory stream

 1 buffer缓冲区

The word Buffer itself says that it works on direct Memory. In .NET, it is basically a manipulation of unmanaged memory represented as arrays of bytes.

要点1: 缓冲区是内存的一部分

要点2: 在程序中可以表示为字节数组。

 

2字节数组 byte[ ]  arraySample

You are dealing with binary data that is organized into a series of bytes in your C# program, which may be part of a data file, image file, compressed file, downloaded server response, or many other files. The C# language provides a byte array type that is an ideal representation of this data in terms of its accurate representation in memory. Here we examine the byte array type in the C# language.

要点1: 低层的数据是二进制数据,如0101001。

要点2: byte[]字节数组可以让程序直接来操作二进制数据。

要点3: 这些二进制数据可以表示很多东西,如数据文件,图像文件,压缩文件等。

 

3 memory stream

The MemoryStream class creates streams that have memory as a backing store instead of a disk or a network connection. MemoryStream encapsulates data stored as an unsigned byte array that is initialized upon creation of a MemoryStream object, or the array can be created as empty.

要点1: 这些数据流是在内存中储存的数据流。

要点2: 用字节数组byte[]来表示

 

(参考资料

http://dotnetperls.com/byte-array

MSDN)

 

阅读更多
个人分类: C++
想对作者说点什么? 我来说一句

Java的缓存与缓冲区

缓存

Jack_Lantern Jack_Lantern

2017-05-15 17:47:29

阅读数:799

没有更多推荐了,返回首页

不良信息举报

缓冲区buffer,字节数组 bytep[] arraysample与内存流memory stream

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭