コード例 #1
0
 void decode_header(NdrBuffer buf) throws NdrException {
   /* RPC major / minor version */
   if (buf.dec_ndr_small() != 5 || buf.dec_ndr_small() != 0)
     throw new NdrException("DCERPC version not supported");
   ptype = buf.dec_ndr_small();
   flags = buf.dec_ndr_small();
   if (buf.dec_ndr_long() != 0x00000010) /* Little-endian / ASCII / IEEE */
     throw new NdrException("Data representation not supported");
   length = buf.dec_ndr_short();
   if (buf.dec_ndr_short() != 0) throw new NdrException("DCERPC authentication not supported");
   call_id = buf.dec_ndr_long();
 }
コード例 #2
0
 public void decode(NdrBuffer src) throws NdrException {
   value = src.dec_ndr_small();
 }