Thursday 15 September 2011

java - Get a segment of a Direct Byte/Short/Int/Float Buffer -


What is the best way to reduce the limit of one element from one buffer to the other content is ? DirectByteBuffer 1: (1, 2, 3, 4 | 5, 6) // Before the limit can be from 1 to 3 / After DirectByteBuffer: 1: (1, 5, 6) DirectByteBuffer 2: (2, 3, 4)

is the fastest way to copy the bytes between buffers You can use it to copy into a buffer's second buffer. Using different slices, you can also use it to transfer data to a single buffer, thus filling a hole. The original step left by copied data

  1. Prepare for the source field
  2. Set it up and denote the data that you want to copy


No comments:

Post a Comment