     b.writeShort(-128, ByteBuffer.BIG_ENDIAN)
     b.writeUnsignedShort(128, ByteBuffer.LITTLE_ENDIAN)
     
-    b.index = 0
+    b.front()
     
     expect(b.readShort(ByteBuffer.LITTLE_ENDIAN)).toEqual(-32513)
     expect(b.readUnsignedShort(ByteBuffer.BIG_ENDIAN)).toEqual(32768)
     
-    b.index = 0
+    b.front()
 
     expect(b.readShort(ByteBuffer.BIG_ENDIAN)).toEqual(-128)
     expect(b.readUnsignedShort(ByteBuffer.LITTLE_ENDIAN)).toEqual(128)

    b.writeFloat(Math.PI)
    b.writeDouble(Math.PI)
    
    b.index = 0
    
    expect(b.readByte()).toEqual(-1 << 7)
    expect(b.readUnsignedByte()).toEqual(1 << 7)

    b.writeFloat(Math.PI)
    b.writeDouble(Math.PI)
    
    b.front()
    
    expect(b.readByte()).toEqual(-1 << 7)
    expect(b.readUnsignedByte()).toEqual(1 << 7)
