public static void putIntUnsignedNullable(ByteBuffer out, Integer x)
    {
        if (x == null) 
        {
            out.put( NULL );
        }
        else
        {
            int value = x.intValue();
            int a = (value & 0x3F);
            int more = (value >>= 6) != 0 ? BYTE_MORE : 0;
            
            out.put( (byte)(more | BYTE_NOT_NULL_UNSIGNED | a) );
            
            while (more != 0)
            {
                a = value & 0x7F;
                more = (value >>= 7) != 0 ? BYTE_MORE : 0;
                out.put( (byte)(more | a) );
            }
        }
    }