PageRenderTime 61ms CodeModel.GetById 57ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/symmetric/NullPad.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 34 lines | 18 code | 4 blank | 12 comment | 0 complexity | dfd1c24f850efa7eae9e3b8f2592b139 MD5 | raw file
 1/**
 2 * NullPad
 3 * 
 4 * A padding class that doesn't pad.
 5 * Copyright (c) 2007 Henri Torgemane
 6 * 
 7 * See LICENSE.txt for full license information.
 8 */
 9package com.hurlant.crypto.symmetric
10{
11	import flash.utils.ByteArray;
12
13	/**
14	 * A pad that does nothing.
15	 * Useful when you don't want padding in your Mode.
16	 */
17	public class NullPad implements IPad
18	{
19		public function unpad(a:ByteArray):void
20		{
21			return;
22		}
23		
24		public function pad(a:ByteArray):void
25		{
26			return;
27		}
28
29		public function setBlockSize(bs:uint):void {
30			return;
31		}
32		
33	}
34}