Exemple #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;
 }
Exemple #2
0
 public static void SetFieldName(NeoStorageKey nsk, byte[] value)
 {
     nsk._fieldName = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #3
0
 public static byte[] GetFieldName(NeoStorageKey nsk)
 {
     return(nsk._fieldName);
 }
Exemple #4
0
 public static string GetAppNameAsString(NeoStorageKey nsk)
 {
     return(nsk._app.AsString());
 }
Exemple #5
0
 public static void SetBuild(NeoStorageKey nsk, int value)
 {
     nsk._build = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #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
 }
Exemple #7
0
 public static byte[] GetAppNameAsByteArray(NeoStorageKey nsk)
 {
     return(nsk._app);
 }
Exemple #8
0
 public static void SetDomain(NeoStorageKey nsk, string value)
 {
     nsk._domain = value.AsByteArray(); nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #9
0
 public static string GetDomainAsString(NeoStorageKey nsk)
 {
     return(nsk._domain.AsString());
 }
Exemple #10
0
 public static void SetDomain(NeoStorageKey nsk, byte[] value)
 {
     nsk._domain = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #11
0
 public static byte[] GetDomainAsByteArray(NeoStorageKey nsk)
 {
     return(nsk._domain);
 }
Exemple #12
0
 public static byte[] GetUserScriptHash(NeoStorageKey nsk)
 {
     return(nsk._userScriptHash);
 }
Exemple #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;
 }
Exemple #14
0
 public static int GetBuild(NeoStorageKey nsk)
 {
     return(nsk._build);
 }
Exemple #15
0
        // EntityState wrapper methods

        public static bool IsNull(NeoStorageKey nsk)
        {
            return(nsk._state == NeoEntityModel.EntityState.NULL);
        }
Exemple #16
0
 public static byte[] GetClassNameAsByteArray(NeoStorageKey nsk)
 {
     return(nsk._className);
 }
Exemple #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);
        }
Exemple #18
0
 public static string GetClassNameAsString(NeoStorageKey nsk)
 {
     return(nsk._className.AsString());
 }
Exemple #19
0
 public static void SetAppName(NeoStorageKey nsk, byte[] value)
 {
     nsk._app = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #20
0
 public static void SetIndex(NeoStorageKey nsk, int value)
 {
     nsk._index = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #21
0
 public static void SetAppName(NeoStorageKey nsk, string value)
 {
     nsk._app = value.AsByteArray(); nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #22
0
 public static int GetIndex(NeoStorageKey nsk)
 {
     return(nsk._index);
 }
Exemple #23
0
 public static void SetMajor(NeoStorageKey nsk, int value)
 {
     nsk._major = value; nsk._state = NeoEntityModel.EntityState.SET;
 }
Exemple #24
0
 public static int GetMinor(NeoStorageKey nsk)
 {
     return(nsk._minor);
 }