final int nanosStartIndex = 8; extension = unpacker.unpackExtensionTypeHeader(); if (extension.getType() == MSG_PACK_TIME_EXT_TYPE) { dst = new byte[extension.getLength()]; unpacker.readPayload(dst); ByteBuffer bf = ByteBuffer.wrap(dst, 0, extension.getLength()); long epochSeconds = bf.getLong(); int nanosOffset = bf.getInt(nanosStartIndex);
case Code.FIXEXT1: { byte type = readByte(); return new ExtensionTypeHeader(type, 1); return new ExtensionTypeHeader(type, 2); return new ExtensionTypeHeader(type, 4); return new ExtensionTypeHeader(type, 8); return new ExtensionTypeHeader(type, 16); int length = u8 & 0xff; byte type = numberBuffer.getByte(nextReadPosition + 1); return new ExtensionTypeHeader(type, length); int length = u16 & 0xffff; byte type = numberBuffer.getByte(nextReadPosition + 2); return new ExtensionTypeHeader(type, length); return new ExtensionTypeHeader(type, length);
final int nanosStartIndex = 8; extension = unpacker.unpackExtensionTypeHeader(); if (extension.getType() == MSG_PACK_TIME_EXT_TYPE) { dst = new byte[extension.getLength()]; unpacker.readPayload(dst); ByteBuffer bf = ByteBuffer.wrap(dst, 0, extension.getLength()); long epochSeconds = bf.getLong(); int nanosOffset = bf.getInt(nanosStartIndex);