question: protected final void fillBufferRow ( ByteBuffer bbuf , int wid , int row , LayerType layerType ) { switch ( layerType ) { case none : case footprint : case viewshed : case derivative : break ; case elevation : case field : FloatBuffer fbuf = bbuf . asFloatBuffer ( ) ; fbuf . position ( row * wid ) ; for ( int c = 0 ; c < wid ; ++ c ) { fbuf . put ( Float . NaN ) ; } break ; case colorimage : IntBuffer ibuf = bbuf . asIntBuffer ( ) ; ibuf . position ( row * wid ) ; for ( int c = 0 ; c < wid ; ++ c ) { ibuf . put ( 0 ) ; } break ; case grayimage : bbuf . position ( row * wid ) ; for ( int c = 0 ; c < wid ; ++ c ) { bbuf . put ( ( byte ) 0 ) ; } break ; } bbuf . rewind ( ) ; }
target:  Fill a byte buffer with a padding value.