Hex Artifact Content
Not logged in

Artifact e23dec91fff7dde7293a0f200dc112f40bcca24d:


0000: 2f 2a 0a 20 2a 20 54 68 69 73 20 66 69 6c 65 20  /*. * This file 
0010: 69 73 20 61 20 70 61 72 74 20 6f 66 20 4d 6f 6e  is a part of Mon
0020: 6f 20 42 69 6e 64 69 6e 67 73 20 66 6f 72 20 4c  o Bindings for L
0030: 69 62 72 68 61 73 68 0a 20 2a 20 43 6f 70 79 72  ibrhash. * Copyr
0040: 69 67 68 74 20 28 63 29 20 32 30 31 31 2d 32 30  ight (c) 2011-20
0050: 31 32 2c 20 53 65 72 67 65 79 20 42 61 73 61 6c  12, Sergey Basal
0060: 61 65 76 20 3c 73 62 61 73 61 6c 61 65 76 40 67  aev <sbasalaev@g
0070: 6d 61 69 6c 2e 63 6f 6d 3e 0a 20 2a 20 4c 69 62  mail.com>. * Lib
0080: 72 68 61 73 68 20 69 73 20 28 63 29 20 32 30 31  rhash is (c) 201
0090: 31 2d 32 30 31 32 2c 20 41 6c 65 6b 73 65 79 20  1-2012, Aleksey 
00a0: 4b 72 61 76 63 68 65 6e 6b 6f 20 3c 72 68 61 73  Kravchenko <rhas
00b0: 68 2e 61 64 6d 69 6e 40 67 6d 61 69 6c 2e 63 6f  h.admin@gmail.co
00c0: 6d 3e 0a 20 2a 20 0a 20 2a 20 50 65 72 6d 69 73  m>. * . * Permis
00d0: 73 69 6f 6e 20 69 73 20 68 65 72 65 62 79 20 67  sion is hereby g
00e0: 72 61 6e 74 65 64 2c 20 66 72 65 65 20 6f 66 20  ranted, free of 
00f0: 63 68 61 72 67 65 2c 20 20 74 6f 20 61 6e 79 20  charge,  to any 
0100: 70 65 72 73 6f 6e 20 6f 62 74 61 69 6e 69 6e 67  person obtaining
0110: 20 61 20 63 6f 70 79 0a 20 2a 20 6f 66 20 74 68   a copy. * of th
0120: 69 73 20 73 6f 66 74 77 61 72 65 20 61 6e 64 20  is software and 
0130: 61 73 73 6f 63 69 61 74 65 64 20 64 6f 63 75 6d  associated docum
0140: 65 6e 74 61 74 69 6f 6e 20 66 69 6c 65 73 20 28  entation files (
0150: 74 68 65 20 22 53 6f 66 74 77 61 72 65 22 29 2c  the "Software"),
0160: 20 74 6f 20 64 65 61 6c 0a 20 2a 20 69 6e 20 74   to deal. * in t
0170: 68 65 20 53 6f 66 74 77 61 72 65 20 77 69 74 68  he Software with
0180: 6f 75 74 20 72 65 73 74 72 69 63 74 69 6f 6e 2c  out restriction,
0190: 20 20 69 6e 63 6c 75 64 69 6e 67 20 77 69 74 68    including with
01a0: 6f 75 74 20 6c 69 6d 69 74 61 74 69 6f 6e 20 74  out limitation t
01b0: 68 65 20 72 69 67 68 74 73 0a 20 2a 20 74 6f 20  he rights. * to 
01c0: 20 75 73 65 2c 20 20 63 6f 70 79 2c 20 20 6d 6f   use,  copy,  mo
01d0: 64 69 66 79 2c 20 20 6d 65 72 67 65 2c 20 70 75  dify,  merge, pu
01e0: 62 6c 69 73 68 2c 20 64 69 73 74 72 69 62 75 74  blish, distribut
01f0: 65 2c 20 73 75 62 6c 69 63 65 6e 73 65 2c 20 61  e, sublicense, a
0200: 6e 64 2f 6f 72 20 73 65 6c 6c 0a 20 2a 20 63 6f  nd/or sell. * co
0210: 70 69 65 73 20 20 6f 66 20 20 74 68 65 20 53 6f  pies  of  the So
0220: 66 74 77 61 72 65 2c 20 20 61 6e 64 20 20 74 6f  ftware,  and  to
0230: 20 70 65 72 6d 69 74 20 20 70 65 72 73 6f 6e 73   permit  persons
0240: 20 20 74 6f 20 77 68 6f 6d 20 20 74 68 65 20 53    to whom  the S
0250: 6f 66 74 77 61 72 65 20 20 69 73 0a 20 2a 20 66  oftware  is. * f
0260: 75 72 6e 69 73 68 65 64 20 74 6f 20 64 6f 20 73  urnished to do s
0270: 6f 2e 0a 20 2a 20 0a 20 2a 20 54 68 69 73 20 6c  o.. * . * This l
0280: 69 62 72 61 72 79 20 20 69 73 20 64 69 73 74 72  ibrary  is distr
0290: 69 62 75 74 65 64 20 20 69 6e 20 74 68 65 20 68  ibuted  in the h
02a0: 6f 70 65 20 74 68 61 74 20 69 74 20 77 69 6c 6c  ope that it will
02b0: 20 62 65 20 75 73 65 66 75 6c 2c 20 62 75 74 20   be useful, but 
02c0: 57 49 54 48 4f 55 54 0a 20 2a 20 41 4e 59 20 57  WITHOUT. * ANY W
02d0: 41 52 52 41 4e 54 59 3b 20 77 69 74 68 6f 75 74  ARRANTY; without
02e0: 20 65 76 65 6e 20 74 68 65 20 69 6d 70 6c 69 65   even the implie
02f0: 64 20 77 61 72 72 61 6e 74 79 20 6f 66 20 4d 45  d warranty of ME
0300: 52 43 48 41 4e 54 41 42 49 4c 49 54 59 20 6f 72  RCHANTABILITY or
0310: 20 46 49 54 4e 45 53 53 0a 20 2a 20 46 4f 52 20   FITNESS. * FOR 
0320: 41 20 50 41 52 54 49 43 55 4c 41 52 20 50 55 52  A PARTICULAR PUR
0330: 50 4f 53 45 2e 20 55 73 65 20 69 74 20 61 74 20  POSE. Use it at 
0340: 79 6f 75 72 20 6f 77 6e 20 72 69 73 6b 21 0a 20  your own risk!. 
0350: 2a 2f 0a 0a 75 73 69 6e 67 20 53 79 73 74 65 6d  */..using System
0360: 2e 52 65 66 6c 65 63 74 69 6f 6e 3b 0a 75 73 69  .Reflection;.usi
0370: 6e 67 20 53 79 73 74 65 6d 2e 52 75 6e 74 69 6d  ng System.Runtim
0380: 65 2e 43 6f 6d 70 69 6c 65 72 53 65 72 76 69 63  e.CompilerServic
0390: 65 73 3b 0a 0a 2f 2f 20 49 6e 66 6f 72 6d 61 74  es;..// Informat
03a0: 69 6f 6e 20 61 62 6f 75 74 20 74 68 69 73 20 61  ion about this a
03b0: 73 73 65 6d 62 6c 79 20 69 73 20 64 65 66 69 6e  ssembly is defin
03c0: 65 64 20 62 79 20 74 68 65 20 66 6f 6c 6c 6f 77  ed by the follow
03d0: 69 6e 67 20 61 74 74 72 69 62 75 74 65 73 2e 20  ing attributes. 
03e0: 0a 2f 2f 20 43 68 61 6e 67 65 20 74 68 65 6d 20  .// Change them 
03f0: 74 6f 20 74 68 65 20 76 61 6c 75 65 73 20 73 70  to the values sp
0400: 65 63 69 66 69 63 20 74 6f 20 79 6f 75 72 20 70  ecific to your p
0410: 72 6f 6a 65 63 74 2e 0a 0a 5b 61 73 73 65 6d 62  roject...[assemb
0420: 6c 79 3a 20 41 73 73 65 6d 62 6c 79 54 69 74 6c  ly: AssemblyTitl
0430: 65 28 22 52 48 61 73 68 22 29 5d 0a 5b 61 73 73  e("RHash")].[ass
0440: 65 6d 62 6c 79 3a 20 41 73 73 65 6d 62 6c 79 44  embly: AssemblyD
0450: 65 73 63 72 69 70 74 69 6f 6e 28 22 2e 4e 45 54  escription(".NET
0460: 2f 4d 6f 6e 6f 20 62 69 6e 64 69 6e 67 73 20 66  /Mono bindings f
0470: 6f 72 20 6c 69 62 72 68 61 73 68 22 29 5d 0a 5b  or librhash")].[
0480: 61 73 73 65 6d 62 6c 79 3a 20 41 73 73 65 6d 62  assembly: Assemb
0490: 6c 79 43 6f 6e 66 69 67 75 72 61 74 69 6f 6e 28  lyConfiguration(
04a0: 22 22 29 5d 0a 5b 61 73 73 65 6d 62 6c 79 3a 20  "")].[assembly: 
04b0: 41 73 73 65 6d 62 6c 79 43 6f 6d 70 61 6e 79 28  AssemblyCompany(
04c0: 22 22 29 5d 0a 5b 61 73 73 65 6d 62 6c 79 3a 20  "")].[assembly: 
04d0: 41 73 73 65 6d 62 6c 79 50 72 6f 64 75 63 74 28  AssemblyProduct(
04e0: 22 22 29 5d 0a 5b 61 73 73 65 6d 62 6c 79 3a 20  "")].[assembly: 
04f0: 41 73 73 65 6d 62 6c 79 43 6f 70 79 72 69 67 68  AssemblyCopyrigh
0500: 74 28 22 28 63 29 20 32 30 31 31 2c 20 53 65 72  t("(c) 2011, Ser
0510: 67 65 79 20 42 61 73 61 6c 61 65 76 22 29 5d 0a  gey Basalaev")].
0520: 5b 61 73 73 65 6d 62 6c 79 3a 20 41 73 73 65 6d  [assembly: Assem
0530: 62 6c 79 54 72 61 64 65 6d 61 72 6b 28 22 22 29  blyTrademark("")
0540: 5d 0a 5b 61 73 73 65 6d 62 6c 79 3a 20 41 73 73  ].[assembly: Ass
0550: 65 6d 62 6c 79 43 75 6c 74 75 72 65 28 22 22 29  emblyCulture("")
0560: 5d 0a 0a 2f 2f 20 54 68 65 20 61 73 73 65 6d 62  ]..// The assemb
0570: 6c 79 20 76 65 72 73 69 6f 6e 20 68 61 73 20 74  ly version has t
0580: 68 65 20 66 6f 72 6d 61 74 20 22 7b 4d 61 6a 6f  he format "{Majo
0590: 72 7d 2e 7b 4d 69 6e 6f 72 7d 2e 7b 42 75 69 6c  r}.{Minor}.{Buil
05a0: 64 7d 2e 7b 52 65 76 69 73 69 6f 6e 7d 22 2e 0a  d}.{Revision}"..
05b0: 2f 2f 20 54 68 65 20 66 6f 72 6d 20 22 7b 4d 61  // The form "{Ma
05c0: 6a 6f 72 7d 2e 7b 4d 69 6e 6f 72 7d 2e 2a 22 20  jor}.{Minor}.*" 
05d0: 77 69 6c 6c 20 61 75 74 6f 6d 61 74 69 63 61 6c  will automatical
05e0: 6c 79 20 75 70 64 61 74 65 20 74 68 65 20 62 75  ly update the bu
05f0: 69 6c 64 20 61 6e 64 20 72 65 76 69 73 69 6f 6e  ild and revision
0600: 2c 0a 2f 2f 20 61 6e 64 20 22 7b 4d 61 6a 6f 72  ,.// and "{Major
0610: 7d 2e 7b 4d 69 6e 6f 72 7d 2e 7b 42 75 69 6c 64  }.{Minor}.{Build
0620: 7d 2e 2a 22 20 77 69 6c 6c 20 75 70 64 61 74 65  }.*" will update
0630: 20 6a 75 73 74 20 74 68 65 20 72 65 76 69 73 69   just the revisi
0640: 6f 6e 2e 0a 0a 5b 61 73 73 65 6d 62 6c 79 3a 20  on...[assembly: 
0650: 41 73 73 65 6d 62 6c 79 56 65 72 73 69 6f 6e 28  AssemblyVersion(
0660: 22 31 2e 30 2e 31 2e 31 22 29 5d 0a 0a 2f 2f 20  "1.0.1.1")]..// 
0670: 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 61 74  The following at
0680: 74 72 69 62 75 74 65 73 20 61 72 65 20 75 73 65  tributes are use
0690: 64 20 74 6f 20 73 70 65 63 69 66 79 20 74 68 65  d to specify the
06a0: 20 73 69 67 6e 69 6e 67 20 6b 65 79 20 66 6f 72   signing key for
06b0: 20 74 68 65 20 61 73 73 65 6d 62 6c 79 2c 20 0a   the assembly, .
06c0: 2f 2f 20 69 66 20 64 65 73 69 72 65 64 2e 20 53  // if desired. S
06d0: 65 65 20 74 68 65 20 4d 6f 6e 6f 20 64 6f 63 75  ee the Mono docu
06e0: 6d 65 6e 74 61 74 69 6f 6e 20 66 6f 72 20 6d 6f  mentation for mo
06f0: 72 65 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 61  re information a
0700: 62 6f 75 74 20 73 69 67 6e 69 6e 67 2e 0a 0a 5b  bout signing...[
0710: 61 73 73 65 6d 62 6c 79 3a 20 41 73 73 65 6d 62  assembly: Assemb
0720: 6c 79 44 65 6c 61 79 53 69 67 6e 28 66 61 6c 73  lyDelaySign(fals
0730: 65 29 5d 0a 2f 2f 5b 61 73 73 65 6d 62 6c 79 3a  e)].//[assembly:
0740: 20 41 73 73 65 6d 62 6c 79 4b 65 79 46 69 6c 65   AssemblyKeyFile
0750: 28 22 52 48 61 73 68 2e 73 6e 6b 22 29 5d 0a 0a  ("RHash.snk")]..