if(remaining < size) bytesToWrite = remaining;
if((indexInTerm + remaining) < size) bytesToWrite = remaining;
	public void voidVisitBlob(ATermBlob arg) throws VisitFailure{		int size = arg.getBlobSize();		if(indexInTerm == 0){			currentBuffer.put(getHeader(arg));			writeInt(size);		}		byte[] blobBytes = arg.getBlobData();		int bytesToWrite = size;		int remaining = currentBuffer.remaining();		if(remaining < size) bytesToWrite = remaining;		currentBuffer.put(blobBytes, indexInTerm, bytesToWrite);		indexInTerm += bytesToWrite;		if(indexInTerm == size) indexInTerm = 0;	}