Esempio n. 1
0
 public string GetString()
 {
     short[] data   = pString.GetValue();
     byte[]  buffer = new byte[data.Length * 2];
     Buffer.BlockCopy(data, 0, buffer, 0, buffer.Length);
     return(Encoding.Unicode.GetString(buffer));
 }
Esempio n. 2
0
 /// <summary>
 /// Helper to dereference a type.
 /// </summary>
 /// <typeparam name="T">The type to dereference.</typeparam>
 /// <param name="t">The value to dereference.</param>
 /// <returns>The dereferenced result.</returns>
 public static T DeRef <T>(NdrEmbeddedPointer <T> t)
 {
     return(t.GetValue());
 }
Esempio n. 3
0
 public object GetObject()
 {
     return((byte[])(object)pBlob.GetValue());
 }
Esempio n. 4
0
 public string GetString()
 {
     return(BinaryEncoding.Instance.GetString(pString.GetValue()));
 }
 public object GetObject()
 {
     return((byte[])(object)Data.GetValue());
 }