예제 #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);
 }