public void writeUnsignedLong ( int value ) { buf.enc_ndr_long ( value ); }
public void writeUnsignedLong(int value) { buf.enc_ndr_long(value); }
public void writeUnsignedLong(int value) { buf.enc_ndr_long(value); }
private NdrBuffer ServerAlive ( final NetworkDataRepresentation ndr ) { logger.info ( "Oxid Object: ServerAlive" ); final byte[] buffer = new byte[32]; //16 + 16=just in case final NdrBuffer ndrBuffer = new NdrBuffer ( buffer, 0 ); ndrBuffer.enc_ndr_long ( 0 ); ndrBuffer.enc_ndr_long ( 0 ); ndrBuffer.enc_ndr_long ( 0 ); ndrBuffer.enc_ndr_long ( 0 ); return ndrBuffer; }
public void enc_ndr_referent(Object obj, int type) { if (obj == null) { enc_ndr_long(0); return; } switch (type) { case 1: /* unique */ case 3: /* ref */ enc_ndr_long(System.identityHashCode(obj)); return; case 2: /* ptr */ enc_ndr_long(getDceReferent(obj)); return; } }
public void enc_ndr_referent(Object obj, int type) { if (obj == null) { enc_ndr_long(0); return; } switch (type) { case 1: /* unique */ case 3: /* ref */ enc_ndr_long(System.identityHashCode(obj)); return; case 2: /* ptr */ enc_ndr_long(getDceReferent(obj)); return; } }
public void encode ( NetworkDataRepresentation ndr, NdrBuffer dst ) throws NdrException { uuid.encode ( ndr, dst ); dst.enc_ndr_long ( version ); }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) throws NdrException { uuid.encode(ndr, dst); dst.enc_ndr_long(version); } public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException {
private NdrBuffer SimplePing ( final NetworkDataRepresentation ndr ) { logger.info ( "Oxid Object: SimplePing" ); final byte b[] = JIMarshalUnMarshalHelper.readOctetArrayLE ( ndr, 8 );//setid JIComOxidRuntime.addUpdateSets ( new JISetId ( b ), new ArrayList (), new ArrayList () ); this.buffer = new NdrBuffer ( new byte[16], 0 ); this.buffer.enc_ndr_long ( 0 ); this.buffer.enc_ndr_long ( 0 ); this.buffer.enc_ndr_long ( 0 ); this.buffer.enc_ndr_long ( 0 ); return this.buffer; }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) throws NdrException { uuid.encode(ndr, dst); dst.enc_ndr_long(version); } public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException {
private NdrBuffer ServerAlive(NetworkDataRepresentation ndr) { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("Oxid Object: ServerAlive"); } byte[] buffer = new byte[32]; //16 + 16=just in case NdrBuffer ndrBuffer = new NdrBuffer(buffer,0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); ndrBuffer.enc_ndr_long(0); return ndrBuffer; } private NdrBuffer ServerAlive2(NetworkDataRepresentation ndr)
private NdrBuffer SimplePing(NetworkDataRepresentation ndr) { if (JISystem.getLogger().isLoggable(Level.INFO)) { JISystem.getLogger().info("Oxid Object: SimplePing"); } byte b[] = JIMarshalUnMarshalHelper.readOctetArrayLE(ndr,8);//setid JIComOxidRuntime.addUpdateSets(new JISetId(b),new ArrayList(),new ArrayList()); buffer = new NdrBuffer(new byte[16],0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); buffer.enc_ndr_long(0); return buffer; }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) throws NdrException { dst.enc_ndr_long(timeLow); dst.enc_ndr_short(timeMid); dst.enc_ndr_short(timeHighAndVersion); dst.enc_ndr_small(clockSeqHighAndReserved); dst.enc_ndr_small(clockSeqLow); System.arraycopy(node, 0, dst.buf, dst.index, 6); dst.index += 6; } public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException {
@Override public void encode ( final NetworkDataRepresentation ndr, final NdrBuffer dst ) throws NdrException { dst.enc_ndr_long ( this.timeLow ); dst.enc_ndr_short ( this.timeMid ); dst.enc_ndr_short ( this.timeHighAndVersion ); dst.enc_ndr_small ( this.clockSeqHighAndReserved ); dst.enc_ndr_small ( this.clockSeqLow ); System.arraycopy ( this.node, 0, dst.buf, dst.index, 6 ); dst.index += 6; }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) throws NdrException { dst.enc_ndr_long(timeLow); dst.enc_ndr_short(timeMid); dst.enc_ndr_short(timeHighAndVersion); dst.enc_ndr_small(clockSeqHighAndReserved); dst.enc_ndr_small(clockSeqLow); System.arraycopy(node, 0, dst.buf, dst.index, 6); dst.index += 6; } public void decode(NetworkDataRepresentation ndr, NdrBuffer src) throws NdrException {
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) { int padding = dst.align(4, (byte) 0); dst.enc_ndr_small(authenticationService); dst.enc_ndr_small(protectionLevel); dst.enc_ndr_small(padding); dst.enc_ndr_small(0); //Reserved dst.enc_ndr_long(contextId); System.arraycopy(body, 0, dst.getBuffer(), dst.getIndex(), body.length); //dst.index += body.length; dst.advance(body.length); }
public void encode(NetworkDataRepresentation ndr, NdrBuffer dst) { int padding = dst.align(4, (byte) 0); dst.enc_ndr_small(authenticationService); dst.enc_ndr_small(protectionLevel); dst.enc_ndr_small(padding); dst.enc_ndr_small(0); //Reserved dst.enc_ndr_long(contextId); System.arraycopy(body, 0, dst.getBuffer(), dst.getIndex(), body.length); //dst.index += body.length; dst.advance(body.length); }
public void encode ( NetworkDataRepresentation ndr, NdrBuffer dst ) { int padding = dst.align ( 4, (byte)0 ); dst.enc_ndr_small ( authenticationService ); dst.enc_ndr_small ( protectionLevel ); dst.enc_ndr_small ( padding ); dst.enc_ndr_small ( 0 ); //Reserved dst.enc_ndr_long ( contextId ); System.arraycopy ( body, 0, dst.getBuffer (), dst.getIndex (), body.length ); //dst.index += body.length; dst.advance ( body.length ); }
protected void writeBody(NetworkDataRepresentation ndr) { NdrBuffer dst = ndr.getBuffer(); dst.enc_ndr_long(getAllocationHint()); dst.enc_ndr_short(getContextId()); dst.enc_ndr_short(getOpnum()); if (getFlag(PFC_OBJECT_UUID)) { try { getObject().encode(ndr, ndr.getBuffer()); } catch (NdrException ne) { }; } }
protected void writeBody(NetworkDataRepresentation ndr) { NdrBuffer dst = ndr.getBuffer(); dst.enc_ndr_long(getAllocationHint()); dst.enc_ndr_short(getContextId()); dst.enc_ndr_short(getOpnum()); if (getFlag(PFC_OBJECT_UUID)) { try { getObject().encode(ndr, ndr.getBuffer()); } catch (NdrException ne) { }; } }