Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.storemate.shared.util;
 
Simple WithBytesCallback implementation to use when you just want a com.fasterxml.storemate.shared.ByteContainer as a result.
 
    public final static WithBytesAsContainer instance = new WithBytesAsContainer();
    @Override
    public ByteContainer withBytes(byte[] bufferint offsetint length) {
        if (offset == 0) {
            return ByteContainer.emptyContainer();
        }
        return ByteContainer.simple(bufferoffsetlength);
    }
New to GrepCode? Check out our FAQ X