Java Long Number Create toLong(byte b)

Here you can find the source of toLong(byte b)

Description

to Long

License

Open Source License

Declaration

private static long toLong(byte b) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2004 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:/*from   www.  j  av a2  s  . co m*/
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

public class Main {
    private static long toLong(byte b) {
        return 0xff & b;
    }
}

Related

  1. fromLong(byte[] buffer, int pos, long l)
  2. fromLong(long value, byte[] arr, int offset)
  3. fromLongLE(byte src[], int offset, int numBytes)
  4. toLong(boolean b)
  5. toLong(boolean... a)
  6. toLong(byte byte7, byte byte6, byte byte5, byte byte4, byte byte3, byte byte2, byte byte1, byte byte0)
  7. toLong(byte... b)
  8. toLong(byte... b)
  9. toLong(byte[] arr)