Skip to content

asyncFuture/buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buffer

an extension of the nio buffer

This is a small library based on Nio. It allows you to take a buffer from a survey, the condition is that the buffer must be free. The good thing is that the buffers are reused, so you save more memory.

showcase

Poll buffer

Heap

Buffer buffer = ByteBuf.heap();

Direct

Buffer buffer = ByteBuf.direct();

Use of the buffer

//poll a buffer
buffer.writeInt(2022);

//fetch readable bytes to array
System.out.println(Arrays.toString(buffer.array()));

//disconnect buffer instance
buffer.detach();

About

an extension of the nio buffer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages