public static Db4objects.Db4o.Internal.SerializedGraph Read(ByteArrayBuffer buffer
			)
		{
			int id = buffer.ReadInt();
			int length = buffer.ReadInt();
			return new Db4objects.Db4o.Internal.SerializedGraph(id, buffer.ReadBytes(length));
		}
        public static Db4objects.Db4o.Internal.SerializedGraph Read(ByteArrayBuffer buffer
                                                                    )
        {
            int id     = buffer.ReadInt();
            int length = buffer.ReadInt();

            return(new Db4objects.Db4o.Internal.SerializedGraph(id, buffer.ReadBytes(length)));
        }
 public void ReadBytes(byte[] bytes)
 {
     _source.ReadBytes(bytes);
     _target.IncrementOffset(bytes.Length);
 }
Example #4
0
		private static byte[] BytesToSendFor(string message)
		{
			LatinStringIO io = new LatinStringIO();
			int marshalledStringLength = io.Length(message);
			ByteArrayBuffer buffer = new ByteArrayBuffer(marshalledStringLength + Const4.IntLength);

			buffer.WriteInt(marshalledStringLength);

			io.WriteLengthAndString(buffer, message);
			buffer.Seek(0);
			return buffer.ReadBytes(buffer.Length());
		}