Exemplo n.º 1
0
		public static void WriteInt(ByteArrayOutputStream @out, int val)
		{
			@out.Write((byte)(val >> 24));
			@out.Write((byte)(val >> 16));
			@out.Write((byte)(val >> 8));
			@out.Write((byte)val);
		}
Exemplo n.º 2
0
		public static void WriteLong(ByteArrayOutputStream @out, long val)
		{
			for (int i = 0; i < LongLength; i++)
			{
				@out.Write((byte)(val >> ((7 - i) * 8)));
			}
		}
Exemplo n.º 3
0
 /// <exception cref="System.IO.IOException"></exception>
 protected virtual void WriteByteArray(ByteArrayOutputStream os, byte[] signaturePart
     )
 {
     PrimitiveCodec.WriteLong(os, signaturePart.Length);
     os.Write(signaturePart);
 }