1   string   to   byte  []
  string   str   =   "abcd"  ;   
  byte[]   bytes   =   System.Text.Encoding.ASCII.GetBytes(str);   
   -------------------------------------------------------------------------------------------------------------
 2   byte[]   to   string   
    
  byte[]   bytes   =   new   byte[255]   ;   
   string   str   =   System.Text.Encoding.ASCII.GetString(bytes,0,bytes.Length); 

相关文章:

  • 2022-12-23
  • 2021-08-15
  • 2023-02-10
  • 2022-12-23
  • 1970-01-01
  • 2021-09-12
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2021-10-11
  • 2022-12-23
  • 2021-11-11
  • 2021-11-19
相关资源
相似解决方案