示例#1
0
 public static void Set(NeoStorageKey nsk, string app, int major, int minor, int build, /*int revision,*/ byte[] userScriptHash, string domain, string className, int index, byte[] fieldName)
 {
     nsk._app            = app.AsByteArray(); nsk._major = major; nsk._minor = minor; nsk._build = build; /*nsk._revision = revision*/;
     nsk._userScriptHash = userScriptHash; nsk._domain = domain.AsByteArray(); nsk._className = className.AsByteArray(); nsk._index = index; nsk._fieldName = fieldName;
     nsk._state          = NeoEntityModel.EntityState.SET;
 }
示例#2
0
 public static void SetFieldName(NeoStorageKey nsk, byte[] value)
 {
     nsk._fieldName = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#3
0
 public static byte[] GetFieldName(NeoStorageKey nsk)
 {
     return(nsk._fieldName);
 }
示例#4
0
 public static string GetAppNameAsString(NeoStorageKey nsk)
 {
     return(nsk._app.AsString());
 }
示例#5
0
 public static void SetBuild(NeoStorageKey nsk, int value)
 {
     nsk._build = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#6
0
 public static void LogExt(string label, NeoStorageKey nsk)
 {
     TraceRuntime(label, nsk._app, nsk._major, nsk._minor, nsk._build, /*nsk._revision,*/ nsk._domain, nsk._className, nsk._index, nsk._fieldName, nsk._userScriptHash, nsk._state); // long values, state, extension last
 }
示例#7
0
 public static byte[] GetAppNameAsByteArray(NeoStorageKey nsk)
 {
     return(nsk._app);
 }
示例#8
0
 public static void SetDomain(NeoStorageKey nsk, string value)
 {
     nsk._domain = value.AsByteArray(); nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#9
0
 public static string GetDomainAsString(NeoStorageKey nsk)
 {
     return(nsk._domain.AsString());
 }
示例#10
0
 public static void SetDomain(NeoStorageKey nsk, byte[] value)
 {
     nsk._domain = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#11
0
 public static byte[] GetDomainAsByteArray(NeoStorageKey nsk)
 {
     return(nsk._domain);
 }
示例#12
0
 public static byte[] GetUserScriptHash(NeoStorageKey nsk)
 {
     return(nsk._userScriptHash);
 }
示例#13
0
 //public static void SetRevision(NeoStorageKey nsk, int value) { nsk._revision = value; nsk._state = NeoEntityModel.EntityState.SET; }
 //public static int GetRevision(NeoStorageKey nsk) { return nsk._revision; }
 public static void SetUserScriptHash(NeoStorageKey nsk, byte[] value)
 {
     nsk._userScriptHash = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#14
0
 public static int GetBuild(NeoStorageKey nsk)
 {
     return(nsk._build);
 }
示例#15
0
        // EntityState wrapper methods

        public static bool IsNull(NeoStorageKey nsk)
        {
            return(nsk._state == NeoEntityModel.EntityState.NULL);
        }
示例#16
0
 public static byte[] GetClassNameAsByteArray(NeoStorageKey nsk)
 {
     return(nsk._className);
 }
示例#17
0
        // Log/trace methods

        public static void Log(string label, NeoStorageKey nsk)
        {
            TraceRuntime(label, nsk._app, nsk._major, nsk._minor, nsk._build, /*nsk._revision,*/ nsk._domain, nsk._className, nsk._index, nsk._fieldName, nsk._userScriptHash);
        }
示例#18
0
 public static string GetClassNameAsString(NeoStorageKey nsk)
 {
     return(nsk._className.AsString());
 }
示例#19
0
 public static void SetAppName(NeoStorageKey nsk, byte[] value)
 {
     nsk._app = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#20
0
 public static void SetIndex(NeoStorageKey nsk, int value)
 {
     nsk._index = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#21
0
 public static void SetAppName(NeoStorageKey nsk, string value)
 {
     nsk._app = value.AsByteArray(); nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#22
0
 public static int GetIndex(NeoStorageKey nsk)
 {
     return(nsk._index);
 }
示例#23
0
 public static void SetMajor(NeoStorageKey nsk, int value)
 {
     nsk._major = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
示例#24
0
 public static int GetMinor(NeoStorageKey nsk)
 {
     return(nsk._minor);
 }