public static FrameType fromByte()

in tchannel-core/src/main/java/com/uber/tchannel/frames/FrameType.java [65:92]


    public static FrameType fromByte(byte value) {
        switch (value) {
            case (byte) 0x01:
                return InitRequest;
            case (byte) 0x02:
                return InitResponse;
            case (byte) 0x03:
                return CallRequest;
            case (byte) 0x04:
                return CallResponse;
            case (byte) 0x13:
                return CallRequestContinue;
            case (byte) 0x14:
                return CallResponseContinue;
            case (byte) 0xc0:
                return Cancel;
            case (byte) 0xc1:
                return Claim;
            case (byte) 0xd0:
                return PingRequest;
            case (byte) 0xd1:
                return PingResponse;
            case (byte) 0xff:
                return Error;
            default:
                return null;
        }
    }