## 类的使用
org.redkale.util.DLong

- 使用DLong的程序包
  程序包 | 说明
  --- | ---
  org.redkale.convert.ext | Convert的基本数据的Coder实现
  org.redkale.net.sncp | SNCP协议包,提供SNCP协议服务器
  org.redkale.util | Redkale工具包

- - ### org.redkale.convert.ext中DLong的使用

    返回DLong的org.redkale.convert.ext中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `DLong` | DLongSimpledCoder.`convertFrom(R in)`
    `DLong` | DLongSimpledCoder.DLongJsonSimpledCoder.`convertFrom(Reader in)`

    参数类型为DLong的org.redkale.convert.ext中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | DLongSimpledCoder.`convertTo(W out, DLong value)`
    `void` | DLongSimpledCoder.DLongJsonSimpledCoder.`convertTo(Writer out, DLong value)`

  - ### org.redkale.net.sncp中DLong的使用

    声明为DLong的org.redkale.net.sncp中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected DLong` | SncpClient.SncpAction.`actionid`
    `protected DLong` | SncpClient.`serviceid`

    返回DLong的org.redkale.net.sncp中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `DLong` | SncpRequest.`getActionid()`
    `DLong` | SncpClient.`getServiceid()`
    `DLong` | SncpDynServlet.`getServiceid()`
    `DLong` | SncpRequest.`getServiceid()`
    `abstract DLong` | SncpServlet.`getServiceid()`
    `static DLong` | Sncp.`hash(java.lang.reflect.Method method)`
    `static DLong` | Sncp.`hash(java.lang.String name)` 对类名或者name字符串进行hash。

    参数类型为DLong的org.redkale.net.sncp中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SncpPrepareServlet.`addServlet(SncpServlet servlet, java.lang.Object attachment, AnyValue conf, DLong... mappings)`
    `static SncpDynServlet.SncpServletAction` | SncpDynServlet.SncpServletAction.`create(Service service, DLong actionid, java.lang.reflect.Method method)` public class TestService implements Service { public boolean change(TestBean bean, String name, int id) { } } public class DynActionTestService_change extends SncpServletAction { public TestService service; @Override public void action(final BsonReader in, final BsonWriter out) throws Throwable { TestBean arg1 = convert.convertFrom(paramTypes[1], in); String arg2 = convert.convertFrom(paramTypes[2], in); int arg3 = convert.convertFrom(paramTypes[3], in); Object rs = service.change(arg1, arg2, arg3); _callParameter(out, arg1, arg2, arg3); convert.convertTo(out, paramTypes[0], rs); } }

    参数类型为DLong的org.redkale.net.sncp中的构造器
    构造器和说明
    `SncpAction(java.lang.reflect.Method method, DLong actionid)`

  - ### org.redkale.util中DLong的使用

    声明为DLong的org.redkale.util中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `static DLong` | DLong.`ZERO`

    返回DLong的org.redkale.util中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static DLong` | DLong.`create(byte[] bytes)`
    `static DLong` | DLong.`read(java.nio.ByteBuffer buffer)`

    参数类型为DLong的org.redkale.util中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | DLong.`compareTo(DLong o)`
    `static java.nio.ByteBuffer` | DLong.`write(java.nio.ByteBuffer buffer, DLong dlong)`