Lines Matching refs:buffer
62 * dest is buffer to pack into
97 public static int getPacketType(byte[] buffer, int bufferLength) {
98 return buffer[0];
103 * returns the offset of the MIDI message in packed buffer
105 public static int getDataOffset(byte[] buffer, int bufferLength) {
112 * returns size of MIDI data in packed buffer
114 public static int getDataSize(byte[] buffer, int bufferLength) {
115 // message length is total buffer length minus size of the timestamp
121 * unpacks timestamp from packed buffer
123 public static long getPacketTimestamp(byte[] buffer, int bufferLength) {
129 int b = (int)buffer[--offset] & 0xFF;