Class ByteType

    • Constructor Detail

      • ByteType

        public ByteType()
    • Method Detail

      • read

        public java.lang.Byte read​(io.netty.buffer.ByteBuf buffer)
        Description copied from interface: ByteBufReader
        Read a value from a ByteBuf
        Specified by:
        read in interface ByteBufReader<java.lang.Byte>
        Parameters:
        buffer - The buffer to read from.
        Returns:
        The type based on the class type.
      • write

        public void write​(io.netty.buffer.ByteBuf buffer,
                          java.lang.Byte object)
        Description copied from interface: ByteBufWriter
        Write an object to a type to a ByteBuf
        Specified by:
        write in interface ByteBufWriter<java.lang.Byte>
        Parameters:
        buffer - The buffer to write to
        object - The object to write
      • from

        public java.lang.Byte from​(java.lang.Object o)
        Description copied from interface: TypeConverter
        Convert from a type to the current type
        Specified by:
        from in interface TypeConverter<java.lang.Byte>
        Parameters:
        o - The input object
        Returns:
        The converted type as an object