Skip to content

Commit cc07d99

Browse files
committed
Disable BufferAccess handling in PrimitiveBlocks
We need a better way to implement ViewProperties.getRootAccessType() Currently, it causes LazyCellImgs to load the first Cell to determine the Access type. We should add a method to NativeImg to get the Access type directly, but I'm not sure yet what complications that might cause.
1 parent d35835f commit cc07d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/imglib2/blocks/ViewPrimitiveBlocks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public ViewPrimitiveBlocks( final ViewProperties< T, R > props )
6868
{
6969
this.props = props;
7070
final PrimitiveType primitiveType = props.getRootType().getNativeTypeFactory().getPrimitiveType();
71-
final MemCopy memCopy = MemCopy.forPrimitiveType( primitiveType, props.getRootAccessType() instanceof BufferAccess, false );
71+
final MemCopy memCopy = MemCopy.forPrimitiveType( primitiveType, /*props.getRootAccessType() instanceof BufferAccess*/ false, false );
7272
final Extension extension = props.getExtension() != null ? props.getExtension() : Extension.border();
7373
final Object oob = extractOobValue( props.getRootType(), extension );
7474
final Ranges findRanges = Ranges.forExtension( extension );

0 commit comments

Comments
 (0)