コード例 #1
0
        protected EzyArray parseArray(EzyByteBuffer buffer, int size)
        {
            EzyArrayBuilder builder = newArrayBuilder();

            for (int i = 0; i < size; ++i)
            {
                builder.append(deserialize(buffer));
            }
            return(builder.build());
        }
コード例 #2
0
        public void udpSend(String cmd, EzyData data)
        {
            EzyArrayBuilder commandData = EzyEntityFactory.newArrayBuilder()
                                          .append(cmd)
                                          .append(data);
            EzyArray requestData = EzyEntityFactory.newArrayBuilder()
                                   .append(id)
                                   .append(commandData.build())
                                   .build();

            client.udpSend(EzyCommand.PLUGIN_REQUEST, requestData);
        }
コード例 #3
0
        public EzyArrayBuilder newArrayBuilder()
        {
            EzyArrayBuilder builder = new EzyArrayBuilder(INPUT_TRANSFORMER, OUTPUT_TRANSFORMER);

            return(builder);
        }