All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.artifact.all.App Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package org.artifact.all;

import cn.hutool.core.util.CharsetUtil;
import org.artifact.core.context.bytebuf.IByteBuff;
import org.artifact.core.context.bytebuf.IByteBuffFactory;
import org.artifact.core.context.bytebuf.NettyByteBuffFactory;

import cn.hutool.core.util.ArrayUtil;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
//    	IByteBuffFactory factory = new NettyByteBuffFactory();
//    	IByteBuff byteBuff = factory.allocate();
//    	byteBuff.writeByte((byte) 1);

        int _value = Float.floatToIntBits(50.4f);

        byte[] bytes = "123".getBytes(CharsetUtil.CHARSET_UTF_8);
        System.out.println(bytes.length);
    	System.out.println(Arrays.toString(bytes));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy