Skip to main content

Questions tagged [buffer]

A buffer is an area of memory set aside for temporary storage of data while it is being moved from one place to another. This is typically done to speed up processes with significant latency, such as writing to a disk, printer or other physical device. The output is ready to be sent to the device before the device is ready to accept it, so it is moved to the buffer so that the sending program does not have to continue waiting.

buffer
-1 votes
0 answers
17 views

In vimdiff, how can I shift-v (select entire line) in both buffers?

I want to to be able to to select across buffers in vimdiff. Is there a way to do this? For instance, I want to be able to shift-v on both documents, and show the highlighted lines across both ...
Dave's user avatar
  • 1,026
1 vote
1 answer
65 views

Why does printf flush or not flush depending on where the line is in a loop?

Why, in this program, does the printf function print or not print depending on where it is inside the loop? #include <stdio.h> #include <time.h> int main() { char frames[] = {'-',...
user13456653's user avatar
1 vote
1 answer
23 views

How to perform a find-replace operation from the cursor position to EOF

How to perform a find-replace operation in Neovim from the cursor position to the end of the file (EOF), as Ex command :%s/Hi/Hello/g will write entire document file instead of from current cursor ...
user17227456's user avatar
  • 1,287
1 vote
1 answer
63 views

BufReader Issues with Inconsistent Reads Across Multiple Buffer Sizes

I'm facing an issue with BufReader in Rust when attempting to read data into two separate temporary buffers under different conditions. Below is a breakdown along with the added code. First Buffer ...
Ganesh Rathinavel's user avatar
0 votes
0 answers
22 views

zookeeper large memory size

I have a zk cluster set up , however, I ran into errors: in zookeeper.properties, I have jute.maxbuffer=1073741824 But in zk logs during start up, I've got 2024-07-09 14:12:58,105 [myid:] - INFO [...
Jin Ma's user avatar
  • 199
0 votes
1 answer
35 views

How does the socket buffer work in Linux?

I'm using python TCP server, and the clients will just send data to the server via sockets. In Linux, there are the buffer size defined for TCP. So does that mean when the client writes to the socket, ...
Ames ISU's user avatar
  • 341
0 votes
0 answers
27 views

Byte order from Modbus request

I'm trying to read out a Modbus register over TCP, which seems to be working fine, however the response and the byte order are not making sense to me. I'm using JavaScript and the jsModbus library to ...
ralphcom's user avatar
  • 333
0 votes
1 answer
41 views

Vulkan StagingBuffer Alignment

Lets say that I have different types of data like vertices, indices... and I want to transfer them by using just one staging buffer. Does buffer alignment cause problem, do I have to check whether ...
yigitEmre's user avatar
1 vote
1 answer
75 views

How to count the number of bytes read from bufio.Reader in Golang

I open a file and read from it using bufio.Reader like so file, err := os.Open(filepath) if err != nil { return nil, err } utf16bom := unicode.UTF16(unicode.LittleEndian, unicode....
adel's user avatar
  • 665
0 votes
0 answers
57 views

SLURM maximum buffer size

In the slurmctld.log I have this error error: Configured MaxJobCount may lead to job_state being larger then maximum buffer size and not saved, based on the average job state size(2.34 KiB) we can ...
Emma Athan's user avatar
0 votes
2 answers
73 views

How to implement Display trait for PathBuf

I was working with a library's function which accepts any values with a Display trait this is a problem because PathBuf wasn't implemented with Display trait. This is my code: //library: inquire fn ...
Loaf's user avatar
  • 27
0 votes
0 answers
64 views

DataByte to List<int> using map function?

I have a buffer byteBuffer in ByteData format that is 500 bytes long. It's a list of 250 Uint16 values. I can convert it to List using a loop with the following code (and it works). List<int> ...
kdesroch1's user avatar
0 votes
0 answers
45 views

Convert image to buffer chunks - react native

I need to generate buffer of a chunk from an image path in react. Buffer format server is expecting is as follows: <Buffer 64 61 74 61 3a 69 6d 61 67 65 2f 6a 70 65 67 3b 62 61 73 65 36 34 2c 2f 39 ...
Fatima Siddique's user avatar
0 votes
0 answers
21 views

Upload ffmpeg output to S3

When I make the next upload, if the duration of the clip is very short it generates a corrupt file and if it is a little longer, for example 19 seconds, it generates a file that starts from second 8 ...
Bruno Munné's user avatar
1 vote
1 answer
57 views

React : create a DNA viewer for very long sequence

I would like to create my own dna sequence viewer in a react ts app (to learn and practice coding). I get the sequence from my flask server as a long string, very well. but in the case of the sequence ...
DMN's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
475