Example #1
0
        /// <summary>
        /// Create ByteBuffe From Stream
        /// </summary>
        /// <param name="p_Stream">Stream Content</param>
        /// <returns></returns>
        public static ByteBuffe FromStream(Stream p_Stream)
        {
            ByteBuffe bb = new ByteBuffe();

            bb.SetData(p_Stream);
            return(bb);
        }
Example #2
0
        /// <summary>
        /// Create ByteBuffe From Stream
        /// </summary>
        /// <param name="p_Base64String">Base64String</param>
        /// <returns></returns>
        public static ByteBuffe FromString(String p_Base64String)
        {
            ByteBuffe bb = new ByteBuffe();

            bb.SetData(p_Base64String);
            return(bb);
        }
 public void Dispose()
 {
     if (null != Voice)
     {
         Voice.Dispose();
     }
     Voice = null;
 }
Example #4
0
 /// <summary>
 /// Create ByteBuffe From Stream
 /// </summary>
 /// <param name="p_Base64String">Base64String</param>
 /// <returns></returns>
 public static ByteBuffe FromString(String p_Base64String)
 {
     ByteBuffe bb = new ByteBuffe();
     bb.SetData(p_Base64String);
     return bb;
 }
Example #5
0
 /// <summary>
 /// Create ByteBuffe From Stream
 /// </summary>
 /// <param name="p_Stream">Stream Content</param>
 /// <returns></returns>
 public static ByteBuffe FromStream(Stream p_Stream)
 {
     ByteBuffe bb = new ByteBuffe();
     bb.SetData(p_Stream);
     return bb;
 }
Example #6
0
 public static void SaveFile(String p_FilePath, ByteBuffe p_Buffe)
 {
     if (!String.IsNullOrEmpty(p_FilePath) && p_Buffe.Count > 0)
     {
         IsolatedStorageManager.CreateImageFile(p_FilePath, p_Buffe.ToArrary());
     }
 }