Lines Matching refs:payload
31 public OSUProvider(String ssid, ByteBuffer payload) throws ProtocolException {
32 if (payload.remaining() < 11) {
33 throw new ProtocolException("Truncated OSU provider: " + payload.remaining());
38 int length = payload.getShort() & SHORT_MASK;
39 int namesLength = payload.getShort() & SHORT_MASK;
41 ByteBuffer namesBuffer = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN);
43 payload.position(payload.position() + namesLength);
51 mOSUServer = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8);
52 int methodLength = payload.get() & BYTE_MASK;
55 int methodID = payload.get() & BYTE_MASK;
62 int iconsLength = payload.getShort() & SHORT_MASK;
63 ByteBuffer iconsBuffer = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN);
65 payload.position(payload.position() + iconsLength);
73 mOsuNai = Constants.getPrefixedString(payload, 1, StandardCharsets.UTF_8, true);
75 int descriptionsLength = payload.getShort() & SHORT_MASK;
76 ByteBuffer descriptionsBuffer = payload.duplicate().order(ByteOrder.LITTLE_ENDIAN);
78 payload.position(payload.position() + descriptionsLength);