Пример #1
0
 public NativeSlice set(NativeBuffer buffer) {
   this.size_ = buffer.capacity();
   this.data_ = buffer.pointer();
   return this;
 }
Пример #2
0
 public NativeSlice(NativeBuffer buffer) {
   this(buffer.pointer(), buffer.capacity());
 }