Examples of freeNativeBuffer()


Examples of eu.pursuit.core.Event.freeNativeBuffer()

        // is it the catalog?
        if (Arrays.equals(event.getId(), gui.getVideoSubscriber().getCatalog())){
//          Util.printBytes(event.getDataCopy()); 
          // populate the catalog list.
          gui.populateCatalogList(Util.getString(event.getDataCopy()));
          event.freeNativeBuffer();
          // finally unsubscribe to the catalog
          gui.getVideoSubscriber().unsubscribeCatalog();
        }else{
          // Is a video
          // get the packet and UDP it.
View Full Code Here

Examples of eu.pursuit.core.Event.freeNativeBuffer()

            e.printStackTrace();
          } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          }
          event.freeNativeBuffer();
        }
        break;
      }
    }
  }
View Full Code Here

Examples of eu.pursuit.core.Event.freeNativeBuffer()

      if(event.getType() == EventType.PUBLISHED_DATA){
        System.out.printf("Got notification %d and %d bytes\n",i, event.getDataLength());
        printbytes(event.getDataCopy());

        //make sure to free buffers
        event.freeNativeBuffer();
      }
    }
   
    long duration = System.currentTimeMillis() - start;
    System.out.printf("Duration %d\n", duration);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.