コード例 #1
0
        public static BytesEx FromBytes(byte[] bytes)
        {
            BytesEx result = new BytesEx
            {
                Values = bytes
            };

            return(result);
        }
コード例 #2
0
        public static BytesEx FromHex(string hex)
        {
            byte[]  bytes  = hex.AsHexToBytes();
            BytesEx result = new BytesEx
            {
                Values = bytes
            };

            return(result);
        }
コード例 #3
0
        public static BytesEx FromBase64(string base64)
        {
            byte[]  bytes  = base64.AsBase64ToBytes();
            BytesEx result = new BytesEx
            {
                Values = bytes
            };

            return(result);
        }
コード例 #4
0
        public static BytesEx FromString(string @string)
        {
            byte[]  bytes  = Encoding.UTF8.GetBytes(@string);
            BytesEx result = new BytesEx
            {
                Values = bytes
            };

            result.Values = bytes;
            return(result);
        }