mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-27 22:40:00 +00:00
Use buffered reading for meshms ply records
This commit is contained in:
parent
44ab51e2ab
commit
acaedd644c
2
meshms.c
2
meshms.c
@ -279,7 +279,7 @@ static int ply_read_next(struct ply_read *ply){
|
|||||||
ply->buffer = b;
|
ply->buffer = b;
|
||||||
}
|
}
|
||||||
|
|
||||||
int read = rhizome_read(&ply->read, ply->buffer, ply->record_length);
|
int read = rhizome_read_buffered(&ply->read, &ply->buff, ply->buffer, ply->record_length);
|
||||||
if (read!=ply->record_length)
|
if (read!=ply->record_length)
|
||||||
return WHYF("Expected %d bytes read, got %d", ply->record_length, read);
|
return WHYF("Expected %d bytes read, got %d", ply->record_length, read);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user