Java Code Examples for com.sun.corba.se.impl.orbutil.ORBUtility#intToBytes()

The following examples show how to use com.sun.corba.se.impl.orbutil.ORBUtility#intToBytes() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: POAPolicyMediatorBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 2
Source File: TransientObjectManager.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 3
Source File: POAPolicyMediatorBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 4
Source File: TransientObjectManager.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 5
Source File: POAPolicyMediatorBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 6
Source File: TransientObjectManager.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 7
Source File: POAPolicyMediatorBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 8
Source File: TransientObjectManager.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 9
Source File: POAPolicyMediatorBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 10
Source File: TransientObjectManager.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 11
Source File: POAPolicyMediatorBase.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 12
Source File: TransientObjectManager.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 13
Source File: POAPolicyMediatorBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 14
Source File: TransientObjectManager.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 15
Source File: POAPolicyMediatorBase.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 16
Source File: TransientObjectManager.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 17
Source File: POAPolicyMediatorBase.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 18
Source File: TransientObjectManager.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}
 
Example 19
Source File: POAPolicyMediatorBase.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public synchronized byte[] newSystemId() throws WrongPolicy
{
    if (!isSystemId)
        throw new WrongPolicy() ;

    byte[] array = new byte[8];
    ORBUtility.intToBytes(++sysIdCounter, array, 0);
    ORBUtility.intToBytes( poa.getPOAId(), array, 4);
    return array;
}
 
Example 20
Source File: TransientObjectManager.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
byte[] toBytes()
{
    // Convert the index+counter into an 8-byte (big-endian) key.

    byte key[] = new byte[8];
    ORBUtility.intToBytes(index, key, 0);
    ORBUtility.intToBytes(counter, key, 4);

    return key;
}