Understanding the Differences Between Memory and Buffers

Asked 1 years ago, Updated 1 years ago, 36 views

I'm looking into ArrayBuffer, but I don't understand the meaning of the basic terms, so I'd like to ask you a question.

Q1.
About the expression "buffer space reserved on memory" "·What is the difference between ""memory"" and ""buffer""?"
"·Is the ""memory area or device for temporarily storing information"" on the RAM ""memory""?"
" "·Is ""buffer"" a ""storage area for temporarily storing information"" not necessarily on RAM?"
"·Is ""buffer"" always reserved in ""memory""?"

Q2.buffer memory
"·Is this synonymous with ""
·Or is there no clear definition of this area and should we make appropriate decisions according to the context?

Q3. Is the expression below correct?
"·Save ""binary data"" to ""buffer space reserved on memory""
" ·Obtain binary data from buffer space reserved on memory

javascript

2022-09-30 21:27

2 Answers

Interpret it as a generalization of terms.

In English, buffer can be translated as buffer for nouns and relax for verbs.(Buff and debuff come from this word in game terms.Please note that buff in English has a completely different meaning.)

In the computer world, you can think of it as "something to get between slow and fast devices and absorb the speed difference."Examples of slow devices are hard disks, and examples of fast devices are CPUs.The CPU does other things until it has a set of data from the hard disk, and when it's ready, it's more efficient to do it all at once.Therefore, the term buffer has the nuance that "data is normally out of alignment."

A1.
·Buffers are buffers, so of course there are hardware buffers.For example, USB typically stores communication data in hardware FIFO, which is also called a buffer.
·If you want to make a buffer with software, you will have to make it on RAM.
"·In general, ""memory"" refers to a storage device that can be addressed."
 Flash-ROM that requires special steps to write instead of turning it off  D-RAM turns off when turned off instead of being able to read and write fast  Super expensive instead of super fast, S-RAM turns off when powered off  In other words, RAM is a type of memory.

A2.
·A part of the storage device that you decided to use as a buffer is called buffer memory.
 Context dependent.

A3.
"·In the end, you want to print the ""data"" to your hard disk or screen, right?"
 Or do you want to get it from a disk or a network?
 The term "buffer" is "something that goes in the middle," so if it's a "request definition" level, the wording is a little/quite strange.

·That's what I might say when I write specific code rather than software.
 - There is a routine that reads data to a buffer.  - Some routines output data on buffers
 - I'm trying to create a routine to sort on the buffer.
 If that's the case, you can say it like that.


2022-09-30 21:27

A1
Examples of "buffers" in games
·Front Buffer: The actual location where the contents displayed on the screen are kept
·Backbuffer: Where to create the following drawing contents
·Z buffer (depth buffer): Front and rear information components of each pixel
(=Temporary data space reserved and operated for specific purposes)

If it's called "memory", it's a nuance of memory as a device.

if it is called a バッファbuffer 」
in areas reserved for a particular (logic level) application (frequently rewritten) The nuance is strong.
However, it depends on the context, so please read it in your mood.

A2
Memory is programmed for a variety of purposes.
·At program load level, stack area, heap area, method area, etc.
Buffer memory is a nuance such as memory used for some kind of buffer.

A3
If binary data is a program code,
It's a bit nonsense, but it's not wrong, because there are more appropriate terms as described above.


2022-09-30 21:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.