Beispiel #1
0
 public static java.nio.ByteBuffer integerListToByteBuffer(System.Collections.Generic.IList
                                                           <int> termIds)
 {
     java.nio.ByteBuffer byteBuffer = java.nio.ByteBuffer.allocate(termIds.Count * 4).
                                      order(java.nio.ByteOrder.nativeOrder());
     java.nio.IntBuffer intBuffer = byteBuffer.asIntBuffer();
     foreach (int termId in termIds)
     {
         intBuffer.put(termId);
     }
     return(byteBuffer);
 }