File: connected-users-websocket/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/Memory.as

Recommend this page to a friend!
  Classes of Igor Escobar   Terminal Crossword   connected-users-websocket/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/Memory.as   Download  
File: connected-users-websocket/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/util/Memory.as
Role: Example script
Content type: text/plain
Description: Example script
Class: Terminal Crossword
Generate a crosswords board on a text console
Author: By
Last change:
Date: 2 years ago
Size: 616 bytes
 

Contents

Class file image Download
/** * Memory * * A class with a few memory-management methods, as much as * such a thing exists in a Flash player. * Copyright (c) 2007 Henri Torgemane * * See LICENSE.txt for full license information. */ package com.hurlant.util { import flash.net.LocalConnection; import flash.system.System; public class Memory { public static function gc():void { // force a GC try { new LocalConnection().connect('foo'); new LocalConnection().connect('foo'); } catch (e:*) {} } public static function get used():uint { return System.totalMemory; } } }