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; }
public static void SetFieldName(NeoStorageKey nsk, byte[] value) { nsk._fieldName = value; nsk._state = NeoEntityModel.EntityState.SET; }
public static byte[] GetFieldName(NeoStorageKey nsk) { return(nsk._fieldName); }
public static string GetAppNameAsString(NeoStorageKey nsk) { return(nsk._app.AsString()); }
public static void SetBuild(NeoStorageKey nsk, int value) { nsk._build = value; nsk._state = NeoEntityModel.EntityState.SET; }
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 }
public static byte[] GetAppNameAsByteArray(NeoStorageKey nsk) { return(nsk._app); }
public static void SetDomain(NeoStorageKey nsk, string value) { nsk._domain = value.AsByteArray(); nsk._state = NeoEntityModel.EntityState.SET; }
public static string GetDomainAsString(NeoStorageKey nsk) { return(nsk._domain.AsString()); }
public static void SetDomain(NeoStorageKey nsk, byte[] value) { nsk._domain = value; nsk._state = NeoEntityModel.EntityState.SET; }
public static byte[] GetDomainAsByteArray(NeoStorageKey nsk) { return(nsk._domain); }
public static byte[] GetUserScriptHash(NeoStorageKey nsk) { return(nsk._userScriptHash); }
//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; }
public static int GetBuild(NeoStorageKey nsk) { return(nsk._build); }
// EntityState wrapper methods public static bool IsNull(NeoStorageKey nsk) { return(nsk._state == NeoEntityModel.EntityState.NULL); }
public static byte[] GetClassNameAsByteArray(NeoStorageKey nsk) { return(nsk._className); }
// 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); }
public static string GetClassNameAsString(NeoStorageKey nsk) { return(nsk._className.AsString()); }
public static void SetAppName(NeoStorageKey nsk, byte[] value) { nsk._app = value; nsk._state = NeoEntityModel.EntityState.SET; }
public static void SetIndex(NeoStorageKey nsk, int value) { nsk._index = value; nsk._state = NeoEntityModel.EntityState.SET; }
public static void SetAppName(NeoStorageKey nsk, string value) { nsk._app = value.AsByteArray(); nsk._state = NeoEntityModel.EntityState.SET; }
public static int GetIndex(NeoStorageKey nsk) { return(nsk._index); }
public static void SetMajor(NeoStorageKey nsk, int value) { nsk._major = value; nsk._state = NeoEntityModel.EntityState.SET; }
public static int GetMinor(NeoStorageKey nsk) { return(nsk._minor); }