jpg buffer

This commit is contained in:
peppidesu 2024-10-19 15:08:05 +02:00
parent b3e25cd706
commit 4bcab8ad67
No known key found for this signature in database
GPG key ID: 4E9BA776E329260F
4 changed files with 42 additions and 22 deletions

View file

@ -7,7 +7,7 @@ use tokio::io::{AsyncReadExt, AsyncWriteExt, BufReader, BufWriter};
use crate::{
get_pixel,
grid::{self, Flut},
grid::{self, FlutGrid},
increment_counter,
protocols::{BinaryParser, IOProtocol, Parser, Responder, TextParser},
set_pixel_rgba, Canvas, Color, Command, Coordinate, Protocol, Response,
@ -45,7 +45,7 @@ where
{
reader: BufReader<R>,
writer: BufWriter<W>,
grids: Arc<[Flut<u32>]>,
grids: Arc<[FlutGrid<u32>]>,
parser: ParserTypes,
counter: u64,
}
@ -111,7 +111,7 @@ where
}
}
pub fn new(reader: R, writer: W, grids: Arc<[grid::Flut<u32>]>) -> Self {
pub fn new(reader: R, writer: W, grids: Arc<[grid::FlutGrid<u32>]>) -> Self {
FlutClient {
reader: BufReader::new(reader),
writer: BufWriter::new(writer),