Calculate version and type directly from ByteString