using System; namespace Sony.NP { // Token: 0x0200012A RID: 298 public struct MemoryPools { // Token: 0x170002D3 RID: 723 // (get) Token: 0x06000622 RID: 1570 RVA: 0x000110E8 File Offset: 0x000100E8 // (set) Token: 0x06000623 RID: 1571 RVA: 0x00011100 File Offset: 0x00010100 public ulong ToolkitPoolSize { get { return this.toolkitPoolSize; } set { this.Validate("ToolkitPoolSize", value, 0UL, "", true); this.toolkitPoolSize = value; } } // Token: 0x170002D4 RID: 724 // (get) Token: 0x06000624 RID: 1572 RVA: 0x00011120 File Offset: 0x00010120 // (set) Token: 0x06000625 RID: 1573 RVA: 0x00011138 File Offset: 0x00010138 public ulong JsonPoolSize { get { return this.jsonPoolSize; } set { this.Validate("JsonPoolSize", value, 16384UL, "JSON_MEM_MINIMUM_SIZE", true); this.jsonPoolSize = value; } } // Token: 0x170002D5 RID: 725 // (get) Token: 0x06000626 RID: 1574 RVA: 0x0001115C File Offset: 0x0001015C // (set) Token: 0x06000627 RID: 1575 RVA: 0x00011174 File Offset: 0x00010174 public ulong WebApiPoolSize { get { return this.webApiPoolSize; } set { this.Validate("WebApiPoolSize", value, 0UL, "", true); this.webApiPoolSize = value; } } // Token: 0x170002D6 RID: 726 // (get) Token: 0x06000628 RID: 1576 RVA: 0x00011194 File Offset: 0x00010194 // (set) Token: 0x06000629 RID: 1577 RVA: 0x000111AC File Offset: 0x000101AC public ulong HttpPoolSize { get { return this.httpPoolSize; } set { this.Validate("HttpPoolSize", value, 16384UL, "HTTP_MEM_MINIMUM_SIZE", true); this.httpPoolSize = value; } } // Token: 0x170002D7 RID: 727 // (get) Token: 0x0600062A RID: 1578 RVA: 0x000111D0 File Offset: 0x000101D0 // (set) Token: 0x0600062B RID: 1579 RVA: 0x000111E8 File Offset: 0x000101E8 public ulong SslPoolSize { get { return this.sslPoolSize; } set { this.Validate("SslPoolSize", value, 32768UL, "SSL_MEM_MINIMUM_SIZE", true); this.sslPoolSize = value; } } // Token: 0x170002D8 RID: 728 // (get) Token: 0x0600062C RID: 1580 RVA: 0x0001120C File Offset: 0x0001020C // (set) Token: 0x0600062D RID: 1581 RVA: 0x00011224 File Offset: 0x00010224 public ulong NetPoolSize { get { return this.netPoolSize; } set { this.Validate("NetPoolSize", value, 4096UL, "NET_MEM_MINIMUM_SIZE", true); this.netPoolSize = value; } } // Token: 0x170002D9 RID: 729 // (get) Token: 0x0600062E RID: 1582 RVA: 0x00011248 File Offset: 0x00010248 // (set) Token: 0x0600062F RID: 1583 RVA: 0x00011260 File Offset: 0x00010260 public ulong MatchingPoolSize { get { return this.matchingPoolSize; } set { this.Validate("MatchingPoolSize", value, 0UL, "", true); this.matchingPoolSize = value; } } // Token: 0x170002DA RID: 730 // (get) Token: 0x06000630 RID: 1584 RVA: 0x00011280 File Offset: 0x00010280 // (set) Token: 0x06000631 RID: 1585 RVA: 0x00011298 File Offset: 0x00010298 public ulong MatchingSslPoolSize { get { return this.matchingSslPoolSize; } set { this.Validate("MatchingSslPoolSize", value, 0UL, "", true); this.matchingSslPoolSize = value; } } // Token: 0x170002DB RID: 731 // (get) Token: 0x06000632 RID: 1586 RVA: 0x000112B8 File Offset: 0x000102B8 // (set) Token: 0x06000633 RID: 1587 RVA: 0x000112D0 File Offset: 0x000102D0 public ulong InGameMessagePoolSize { get { return this.inGameMessagePoolSize; } set { this.Validate("InGameMessagePoolSize", value, 0UL, "", true); this.inGameMessagePoolSize = value; } } // Token: 0x06000634 RID: 1588 RVA: 0x000112F0 File Offset: 0x000102F0 private void Validate(string propertyName, ulong size, ulong minSize, string minSizeName, bool mustBe16kbAlligned) { if (mustBe16kbAlligned && size % 16384UL != 0UL) { throw new NpToolkitException("The size of the " + propertyName + " must be a multiple of 16 kbs (16384 bytes)."); } if (minSize > 0UL && size < minSize) { throw new NpToolkitException(string.Concat(new string[] { "The size of the ", propertyName, " must be greater than ", minSizeName, "." })); } } // Token: 0x06000635 RID: 1589 RVA: 0x00011374 File Offset: 0x00010374 public void Init() { this.toolkitPoolSize = 16777216UL; this.jsonPoolSize = 4194304UL; this.webApiPoolSize = 1048576UL; this.httpPoolSize = 65536UL; this.sslPoolSize = 262144UL; this.netPoolSize = 32768UL; this.matchingPoolSize = 524288UL; this.matchingSslPoolSize = 196608UL; this.inGameMessagePoolSize = 16384UL; } // Token: 0x040004D2 RID: 1234 public const int TOOLKIT_MEM_DEFAULT_SIZE = 16777216; // Token: 0x040004D3 RID: 1235 public const int JSON_MEM_MINIMUM_SIZE = 16384; // Token: 0x040004D4 RID: 1236 public const int JSON_MEM_DEFAULT_SIZE = 4194304; // Token: 0x040004D5 RID: 1237 public const int WEB_API_MEM_DEFAULT_SIZE = 1048576; // Token: 0x040004D6 RID: 1238 public const int HTTP_MEM_DEFAULT_SIZE = 65536; // Token: 0x040004D7 RID: 1239 public const int HTTP_MEM_MINIMUM_SIZE = 16384; // Token: 0x040004D8 RID: 1240 public const int SSL_MEM_DEFAULT_SIZE = 262144; // Token: 0x040004D9 RID: 1241 public const int SSL_MEM_MINIMUM_SIZE = 32768; // Token: 0x040004DA RID: 1242 public const int NET_MEM_DEFAULT_SIZE = 32768; // Token: 0x040004DB RID: 1243 public const int NET_MEM_MINIMUM_SIZE = 4096; // Token: 0x040004DC RID: 1244 public const int MATCHING_MEM_DEFAULT_SIZE = 524288; // Token: 0x040004DD RID: 1245 public const int MATCHING_SSL_MEM_DEFAULT_SIZE = 196608; // Token: 0x040004DE RID: 1246 public const int IN_GAME_MESSAGE_MEM_DEFAULT_SIZE = 16384; // Token: 0x040004DF RID: 1247 private ulong toolkitPoolSize; // Token: 0x040004E0 RID: 1248 private ulong jsonPoolSize; // Token: 0x040004E1 RID: 1249 private ulong webApiPoolSize; // Token: 0x040004E2 RID: 1250 private ulong httpPoolSize; // Token: 0x040004E3 RID: 1251 private ulong sslPoolSize; // Token: 0x040004E4 RID: 1252 private ulong netPoolSize; // Token: 0x040004E5 RID: 1253 private ulong matchingPoolSize; // Token: 0x040004E6 RID: 1254 private ulong matchingSslPoolSize; // Token: 0x040004E7 RID: 1255 private ulong inGameMessagePoolSize; } }