Class ByteBufferDestinationHelper
java.lang.Object
org.apache.logging.log4j.core.layout.ByteBufferDestinationHelper
Helper class for ByteBufferDestination implementors.
- Since:
- 2.9 (see LOG4J2-1874)
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidwriteToUnsynchronized(byte[] data, int offset, int length, ByteBufferDestination destination) Writes the specified data to the specified destination.static voidwriteToUnsynchronized(ByteBuffer source, ByteBufferDestination destination) Writes the specified data to the specified destination.
- 
Method Details- 
writeToUnsynchronizedWrites the specified data to the specified destination. Doesn't synchronize on the destination object. The helper method forByteBufferDestination.writeBytes(ByteBuffer)implementations.- Parameters:
- source- the data to write
- destination- the- ByteBufferDestinationto write to
 
- 
writeToUnsynchronizedpublic static void writeToUnsynchronized(byte[] data, int offset, int length, ByteBufferDestination destination) Writes the specified data to the specified destination. Doesn't synchronize on the destination object. The helper method forByteBufferDestination.writeBytes(byte[], int, int)implementations.- Parameters:
- data- the data to write
- offset- where to start in the specified data array
- length- the number of bytes to write
- destination- the- ByteBufferDestinationto write to
 
 
-